
:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #64748b;
  --soft: #f0fdfa;
  --line: #e5e7eb;
  --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, #f8fafc 0%, #f0fdfa 48%, #ffffff 100%);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.24);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.brand-text {
  font-size: 1.35rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 650;
  color: rgba(255,255,255,0.92);
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fffbeb;
  background: rgba(255,255,255,0.16);
}

.top-search {
  width: 330px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
}

.top-search input,
.mobile-search input,
.hero-search-card input,
.page-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: #ffffff;
  padding: 12px 16px;
  font: inherit;
}

.top-search button,
.mobile-search button,
.hero-search-card button,
.page-search button {
  border: 0;
  padding: 12px 16px;
  color: #ffffff;
  background: #f59e0b;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 14px;
  margin-top: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f766e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.36), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.42), transparent 30%),
    linear-gradient(135deg, #0f766e 0%, #0891b2 52%, #0f172a 100%);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 610px;
  margin: 0 auto;
  padding: 54px 22px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: end;
}

.hero-shell {
  position: relative;
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 26px;
  align-items: center;
  padding: 46px;
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 730px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff7ed;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.plain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
}

.plain-btn {
  color: #0f766e;
  border: 1px solid #99f6e4;
  background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.plain-btn:hover {
  transform: translateY(-2px);
}

.hero-art {
  align-self: stretch;
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,0.32);
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}

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

.hero-dots {
  position: absolute;
  left: 46px;
  bottom: 32px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
}

.hero-dot.active {
  width: 46px;
  background: #fbbf24;
}

.hero-search-card {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  box-shadow: var(--shadow);
}

.hero-search-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.hero-search-card form,
.page-search {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ccfbf1;
  background: #ffffff;
}

.hero-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-category-links a {
  padding: 11px 12px;
  border-radius: 14px;
  color: #0f766e;
  font-weight: 800;
  background: #f0fdfa;
}

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px 70px;
}

.section {
  margin-top: 48px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.15;
}

.eyebrow {
  color: #0d9488;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--teal);
}

.meta-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.card-desc {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  color: #0f766e;
  background: #f0fdfa;
}

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

.category-tile {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-height: 210px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid #ccfbf1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tile-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #ccfbf1;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.category-tile p,
.page-title p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 86px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f59e0b;
  text-align: center;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #ccfbf1;
}

.rank-item h3 {
  margin: 0 0 8px;
}

.rank-item p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.page-hero {
  padding: 38px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2 60%, #0f172a);
  box-shadow: var(--shadow);
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: rgba(255,255,255,0.86);
  max-width: 760px;
  margin-top: 12px;
}

.page-search-wrap {
  margin-top: 24px;
  max-width: 680px;
}

.empty-tip {
  display: none;
  padding: 26px;
  margin-top: 22px;
  text-align: center;
  color: #64748b;
  border-radius: 22px;
  background: #ffffff;
}

.empty-tip.is-visible {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2 58%, #111827);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-title p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,0.32);
  background: #ccfbf1;
}

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

.player-wrap {
  margin-top: 34px;
  border-radius: 30px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.58), rgba(0,0,0,0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 2rem;
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.36);
  cursor: pointer;
}

.content-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 34px;
}

.article-box,
.side-box {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.article-box p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 58px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #ccfbf1;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  color: #64748b;
  font-size: 0.86rem;
}

.footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 22px;
}

.footer strong {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 22px 0;
}

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

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.92rem;
}

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

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

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

  .hero-search-card {
    max-width: none;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-dots {
    left: 26px;
    bottom: 22px;
  }

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

  .rank-item {
    grid-template-columns: 44px 72px minmax(0,1fr);
  }

  .rank-item .plain-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    min-height: 62px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .main {
    padding: 28px 14px 54px;
  }

  .hero-shell {
    border-radius: 24px;
    min-height: 720px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-search-card,
  .page-hero,
  .article-box,
  .side-box {
    border-radius: 22px;
    padding: 20px;
  }

  .movie-grid {
    gap: 14px;
  }

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

  .card-body {
    padding: 12px;
  }

  .content-panel {
    gap: 18px;
  }
}
