:root {
  --bg: #061512;
  --panel: rgba(9, 33, 29, 0.78);
  --panel-strong: rgba(7, 24, 22, 0.96);
  --line: rgba(148, 246, 226, 0.18);
  --text: #f5fffc;
  --muted: #a8c7be;
  --soft: #d8fff6;
  --brand: #10b981;
  --brand-dark: #0f766e;
  --cyan: #22d3ee;
  --gold: #facc15;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.28), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(180deg, #08221e 0%, #061512 52%, #040807 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.94), rgba(13, 148, 136, 0.94), rgba(8, 145, 178, 0.94));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06312a;
  background: linear-gradient(135deg, #fde68a, #5eead4);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(250, 204, 21, 0.25);
}

.brand-text {
  font-size: 1.5rem;
  color: #ffffff;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #07332b;
  background: #fef08a;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.header-search input {
  width: min(25vw, 260px);
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 12px;
}

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

.header-search button,
.btn,
.hero-dot,
.filter-button,
.player-overlay {
  border: 0;
  cursor: pointer;
}

.header-search button {
  padding: 8px 14px;
  border-radius: 999px;
  color: #08352d;
  background: #fef08a;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
}

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

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

main {
  overflow: hidden;
}

.section,
.page-hero,
.detail-layout,
.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  isolation: isolate;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.15);
  opacity: 0.36;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 16, 0.95) 0%, rgba(4, 18, 16, 0.78) 46%, rgba(4, 18, 16, 0.28) 100%),
    linear-gradient(0deg, #061512 0%, transparent 42%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 44px;
  padding: 66px 0 90px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.45);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.movie-heading h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-site-name {
  font-size: clamp(2.7rem, 6vw, 6.4rem);
}

.hero-site-name {
  margin: 0;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy h2 {
  margin: 20px 0 14px;
  color: #fef08a;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 1.12;
}

.hero-copy p {
  color: #d4fff6;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #052e2b;
  background: linear-gradient(135deg, #fde68a, #5eead4);
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(45, 212, 191, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(45, 212, 191, 0.32);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 470px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(8, 47, 73, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72));
}

.hero-poster-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
}

.hero-poster-label span:last-child {
  color: #082f2a;
  background: #fef08a;
  padding: 7px 12px;
  border-radius: 999px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 68px;
  background: #fef08a;
}

.section {
  padding: 58px 0;
}

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

.section-heading h2,
.page-hero h1,
.movie-heading h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
}

.section-heading p,
.page-hero p,
.movie-heading p,
.category-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 42, 37, 0.92), rgba(5, 22, 20, 0.92));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 234, 212, 0.6);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 15%, rgba(250, 204, 21, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.62), rgba(12, 74, 110, 0.92));
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.poster-glow {
  position: absolute;
  inset: auto 14px 14px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #062f2a;
  background: #fef08a;
  font-size: 0.9rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
  min-height: 2.7em;
}

.card-title:hover {
  color: #fef08a;
}

.card-body p {
  margin: 10px 0 12px;
  min-height: 4.8em;
  color: #b7d8cf;
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-tags,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.meta-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #bfffea;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #85a9a0;
  font-size: 0.8rem;
}

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

.category-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.category-cover {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(8, 47, 73, 0.8));
}

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 1.28rem;
}

.category-card h2 a:hover,
.category-samples a:hover,
.footer-grid a:hover {
  color: #fef08a;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d4fff6;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.page-hero {
  padding: 62px 0 28px;
}

.page-hero p {
  max-width: 780px;
  font-size: 1.08rem;
}

.filter-bar,
.search-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.filter-button {
  padding: 9px 14px;
  border-radius: 999px;
  color: #d7fff6;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  color: #052e2b;
  background: #fef08a;
}

.search-panel input {
  flex: 1 1 280px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
}

.search-panel input::placeholder {
  color: #90bdb2;
}

.search-panel button {
  padding: 13px 18px;
  border-radius: 999px;
  border: 0;
  color: #052e2b;
  background: #fef08a;
  font-weight: 900;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #052e2b;
  background: linear-gradient(135deg, #fde68a, #5eead4);
  font-weight: 950;
}

.ranking-cover {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(12, 74, 110, 0.8));
}

.ranking-content h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.ranking-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  align-items: end;
}

.detail-poster {
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(12, 74, 110, 0.9));
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #a7f3d0;
  font-weight: 800;
}

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

.movie-heading h1 {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.movie-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #d4fff6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-section {
  padding: 42px 0 24px;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease;
}

.player-overlay strong {
  font-size: clamp(1.3rem, 2.4vw, 2.5rem);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #052e2b;
  background: #fef08a;
  box-shadow: 0 18px 50px rgba(250, 204, 21, 0.25);
}

.player-stage.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 28px;
  padding: 28px 0 70px;
}

.content-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.content-panel {
  padding: 28px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
}

.content-panel p {
  color: #d4fff6;
  line-height: 1.95;
  font-size: 1.04rem;
}

.side-panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-panel .movie-card {
  margin-bottom: 14px;
}

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

.compact-card .poster {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

.compact-card .card-body p,
.compact-card .card-tags {
  display: none;
}

.compact-card .card-title {
  min-height: auto;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer-grid a {
  display: inline-block;
  margin: 0 14px 10px 0;
  color: #c8fff2;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.5rem;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 28px;
  color: #82a89e;
  font-size: 0.92rem;
}

[hidden] {
  display: none !important;
}

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-shell {
    padding-top: 42px;
  }

  .hero-poster {
    min-height: 380px;
  }

  .side-panel {
    position: static;
  }

  .ranking-item {
    grid-template-columns: 54px 78px minmax(0, 1fr);
  }

  .ranking-item .btn {
    grid-column: 2 / 4;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .page-hero,
  .detail-layout,
  .player-section,
  .detail-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1240px);
  }

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

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

  .hero-copy p {
    font-size: 1rem;
  }

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

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

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

  .section-heading {
    display: block;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p {
    min-height: auto;
  }

  .ranking-content p,
  .card-tags {
    display: none;
  }
}
