:root {
  --site-bg: #f7fafc;
  --site-text: #102a43;
  --site-muted: #627d98;
  --site-primary: #009999;
  --site-primary-dark: #007a7a;
  --site-card: #ffffff;
  --site-line: #d9e2ec;
}

body {
  background: var(--site-bg);
  color: var(--site-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.85);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #102a43;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1ab0b0, #007a7a);
  box-shadow: 0 12px 30px rgba(0, 153, 153, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #486581;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-primary-dark);
  background: #e6fffa;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  color: #243b53;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #102a43;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 22%, rgba(0, 153, 153, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(16, 42, 67, 0.96) 0%, rgba(16, 42, 67, 0.74) 48%, rgba(16, 42, 67, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-panel {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e6fffa;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 28px;
}

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

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: transparent;
  color: #ffffff;
  outline: none;
}

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

.hero-search button {
  padding: 12px 20px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--site-primary);
  font-weight: 700;
}

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

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

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

.section-block {
  padding: 64px 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #102a43;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(16, 42, 67, 0.14);
}

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

.poster-box.vertical {
  aspect-ratio: 2 / 3;
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.poster-badge {
  left: 12px;
  background: var(--site-primary);
}

.poster-year {
  right: 12px;
  background: rgba(16, 42, 67, 0.72);
}

.card-body {
  padding: 18px;
}

.card-title {
  font-weight: 800;
  font-size: 18px;
  color: #102a43;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  color: #627d98;
  font-size: 14px;
  line-height: 1.75;
  min-height: 48px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #829ab1;
  font-size: 13px;
}

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

.category-card {
  display: block;
  padding: 22px;
  min-height: 150px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #edfafa);
  border: 1px solid #d9e2ec;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.06);
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: #7ed9d9;
}

.category-card h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--site-muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 128px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.07);
}

.rank-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--site-primary-dark);
  text-align: center;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #d9e2ec;
}

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

.rank-title {
  font-size: 18px;
  font-weight: 900;
  color: #102a43;
}

.rank-info {
  margin-top: 6px;
  color: #627d98;
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
  margin-bottom: 28px;
}

.filter-bar input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0f4f8;
  outline: none;
}

.detail-hero {
  padding: 52px 0;
  background: linear-gradient(135deg, #102a43, #0f5f66 58%, #102a43);
  color: #ffffff;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  aspect-ratio: 2 / 3;
  background: #243b53;
}

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

.detail-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.detail-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 22px;
}

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

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e6fffa;
  color: #007a7a;
  font-weight: 700;
  font-size: 13px;
}

.detail-hero .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #e6fffa;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  padding: 56px 0 22px;
  background: #ffffff;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 55px rgba(16, 42, 67, 0.18);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #102a43;
  z-index: 3;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 153, 153, 0.18), rgba(16, 42, 67, 0.72));
}

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--site-primary-dark);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.article-card {
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.08);
  line-height: 1.95;
  color: #334e68;
}

.article-card h2 {
  font-size: 26px;
  font-weight: 900;
  color: #102a43;
  margin-bottom: 14px;
}

.article-card p + h2 {
  margin-top: 26px;
}

.site-footer {
  background: #102a43;
  color: #d9e2ec;
  padding: 44px 0;
  margin-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-link {
  display: block;
  color: #bcccdc;
  margin: 8px 0;
}

.footer-link:hover {
  color: #7ed9d9;
}

.hide-card {
  display: none;
}

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

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

  .detail-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 42, 67, 0.16);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content {
    min-height: 68vh;
    padding: 54px 0 74px;
  }

  .hero-search {
    flex-direction: column;
  }

  .section-head {
    display: block;
  }

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

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

  .rank-item .btn {
    grid-column: 2 / 4;
    width: max-content;
  }

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

  .detail-cover {
    max-width: 280px;
  }

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

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

  .card-desc {
    min-height: auto;
  }
}
