:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --rose: #f43f5e;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #ecfdf5;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 50%, #ccfbf1 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #059669, #0d9488);
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.25);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex: 0 0 auto;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-title {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
}

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

.nav-link {
  color: #fff;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  color: #334155;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-dropdown-panel a:hover {
  color: var(--emerald);
  background: #ecfdf5;
}

.search-wrap {
  position: relative;
  width: min(300px, 30vw);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 7px 8px 7px 12px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search-box button {
  border: 0;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #fff;
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(440px, 88vw);
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
}

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

.search-result {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
}

.search-result:hover {
  background: #ecfdf5;
}

.search-result img {
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.search-result span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 30px;
}

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

.mobile-nav a {
  display: block;
  color: #fff;
  padding: 10px 0;
  font-weight: 800;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 34%, rgba(16, 185, 129, 0.32), transparent 34%), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18) 45%, rgba(2, 6, 23, 0.54));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 44px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.pill.green {
  background: #10b981;
  color: #fff;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.34);
}

.btn-light {
  color: #0f172a;
  background: #fff;
}

.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-side {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
}

.hero-side img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-title span {
  color: var(--emerald);
}

.section-desc {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 150, 105, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--emerald);
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #0f766e);
  box-shadow: 0 14px 38px rgba(5, 150, 105, 0.22);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #0f766e, #0284c7);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  margin: 0;
  max-width: 86%;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 112px 1fr;
  min-height: 150px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-no {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  font-size: 24px;
  font-weight: 950;
}

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

.rank-copy {
  padding: 18px;
}

.rank-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 72px 0 54px;
  color: #fff;
  background: radial-gradient(circle at 14% 20%, rgba(250, 204, 21, 0.18), transparent 28%), linear-gradient(135deg, #064e3b, #0f766e 54%, #0f172a);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.breadcrumb a:hover {
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  background: var(--emerald);
}

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

.detail-main,
.detail-side,
.content-panel {
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(12px);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at 50% 44%, rgba(16, 185, 129, 0.26), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #064e3b;
  background: #fff;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
  font-size: 32px;
  padding-left: 5px;
}

.detail-copy {
  padding: 28px;
}

.detail-title {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-lead {
  margin: 16px 0 22px;
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

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

.meta-box {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}

.meta-box span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
}

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

.article-block {
  margin-top: 28px;
}

.article-block h2,
.detail-side h2,
.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
}

.article-block p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span,
.tag-list a {
  border-radius: 999px;
  padding: 7px 11px;
  color: #047857;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 900;
}

.detail-side {
  padding: 22px;
}

.side-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.side-card:hover {
  background: #ecfdf5;
}

.side-card img {
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.side-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-card span {
  color: #64748b;
  font-size: 12px;
}

.content-panel {
  padding: 24px;
}

.footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer strong {
  display: block;
  color: #fff;
  margin-bottom: 12px;
  font-size: 19px;
}

.footer p,
.footer a {
  color: #94a3b8;
  line-height: 1.9;
}

.footer a:hover {
  color: #34d399;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  color: #64748b;
}

.text-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .hero-side {
    display: none;
  }

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

  .rank-list {
    grid-template-columns: 1fr;
  }

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

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

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-meta {
    margin: 20px 0;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 52px 96px 1fr;
  }

  .rank-copy {
    padding: 13px;
  }

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

  .detail-copy {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

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

  .rank-item {
    grid-template-columns: 46px 82px 1fr;
  }

  .card-title,
  .rank-copy strong {
    font-size: 16px;
  }
}
