* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #171717;
  background: #fafafa;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(20, 184, 166, 0.14);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f766e;
  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;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  color: #525252;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #0f766e;
  background: #f0fdfa;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #0f766e;
  border: 0;
  border-radius: 12px;
  background: #f0fdfa;
}

.hero {
  position: relative;
  height: 68vh;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 0 64px;
  color: #ffffff;
}

.hero-content-inner {
  max-width: 780px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.48);
  border: 1px solid rgba(204, 251, 241, 0.28);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e5e5e5;
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #0f766e;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #115e59;
  transform: translateY(-1px);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.btn-light:hover {
  color: #ffffff;
  background: #0f766e;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.56);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: #f5f5f5;
}

.section-gradient {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-gradient .section-head h2,
.section-gradient .section-head p {
  color: #ffffff;
}

.section-head p,
.page-title p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #666666;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card,
.feature-card,
.category-card,
.info-card,
.ranking-row {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.movie-card:hover,
.feature-card:hover,
.category-card:hover,
.ranking-row:hover {
  border-color: rgba(20, 184, 166, 0.34);
  box-shadow: 0 22px 50px rgba(15, 118, 110, 0.12);
  transform: translateY(-3px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.poster-link img,
.feature-media img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.86);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.22s ease;
}

.movie-card:hover .play-mark,
.feature-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3,
.category-card h3,
.feature-card h3 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.feature-card h3 a:hover {
  color: #0f766e;
}

.movie-meta,
.movie-brief,
.category-card p,
.info-card p {
  margin: 0;
  color: #666666;
  font-size: 14px;
}

.movie-brief {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #0f766e;
  background: #f0fdfa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.feature-card {
  position: relative;
  min-height: 420px;
}

.feature-media {
  position: absolute;
  inset: 0;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #ffffff;
}

.feature-content h3,
.feature-content p {
  color: #ffffff;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 360px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.category-card {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 28px;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e0fdfa;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.search-input,
.select-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: #171717;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  outline: none;
  background: #fafafa;
}

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

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-buttons button {
  padding: 9px 13px;
  color: #525252;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px;
}

.ranking-index {
  color: #0f766e;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-poster {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0;
  color: #666666;
}

.heat-score {
  padding: 8px 12px;
  color: #0f766e;
  background: #f0fdfa;
  border-radius: 999px;
  font-weight: 800;
}

.detail-hero {
  padding: 46px 0 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #ccfbf1;
  font-size: 14px;
}

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

.detail-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: end;
}

.detail-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: #e5e5e5;
  font-size: 18px;
}

.detail-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.2));
}

.player-cover.is-hidden {
  display: none;
}

.play-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.34);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  color: #e5e5e5;
  text-align: center;
}

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

.article-block {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.article-block + .article-block {
  margin-top: 22px;
}

.article-block h2,
.sidebar h2 {
  margin: 0 0 16px;
  color: #171717;
  font-size: 24px;
}

.article-block p {
  margin: 0 0 14px;
  color: #444444;
  font-size: 16px;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar .movie-card-body {
  padding: 14px;
}

.sidebar .movie-brief {
  display: none;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #525252;
}

.meta-list strong {
  color: #171717;
}

.site-footer {
  margin-top: 40px;
  color: #d4d4d4;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #a3a3a3;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  color: #a3a3a3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-card {
  display: none !important;
}

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

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

  .ranking-row {
    grid-template-columns: 52px 150px minmax(0, 1fr);
  }

  .heat-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .nav-bar {
    min-height: 64px;
  }

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

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 38px 0 58px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head,
  .filter-panel {
    display: block;
  }

  .section-head-actions {
    margin-top: 18px;
  }

  .search-input,
  .select-input {
    margin-top: 10px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-brief {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-poster {
    grid-column: 1 / -1;
  }

  .ranking-index {
    text-align: left;
  }

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

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 34px;
  }
}
