:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --dark: #0f172a;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: var(--cyan-dark);
  background: #ecfeff;
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-search-form input,
.filter-panel input,
.filter-panel select {
  width: 230px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  color: #0f172a;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.site-search-form button,
.primary-button,
.ghost-button,
.more-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button:hover,
.primary-button:hover,
.more-link a:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.25);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s 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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.58) 52%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-pill,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.92);
  font-size: 13px;
  font-weight: 800;
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.page-top {
  padding-top: 48px;
}

.content-section {
  margin: 64px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-content h1 {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-kicker,
.page-hero span {
  color: var(--cyan-dark);
  background: #cffafe;
}

.soft-panel,
.dark-panel {
  margin-left: -24px;
  margin-right: -24px;
  padding: 38px 24px;
  border-radius: 32px;
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

.dark-panel {
  color: #ffffff;
  background: #0f172a;
}

.dark-panel .section-head h2,
.dark-panel .category-tile h2,
.dark-panel .category-tile p {
  color: #ffffff;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-card-wide .movie-cover {
  aspect-ratio: 21 / 9;
}

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

.movie-card:hover .movie-cover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
}

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

.movie-cover-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover-shade {
  opacity: 1;
}

.play-circle,
.player-play {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  font-size: 25px;
  transform: scale(0.72);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-circle {
  transform: scale(1);
}

.movie-badge,
.movie-duration {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.movie-badge {
  left: 12px;
}

.movie-duration {
  right: 12px;
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--cyan-dark);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-tags span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  min-height: 174px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-covers img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.category-tile h2 {
  margin: 2px 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 0 0 16px;
  color: #64748b;
}

.category-tile span {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  border-color: #67e8f9;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 14px;
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.more-link {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.page-hero {
  margin-bottom: 36px;
  padding: 48px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 55%, #ffffff);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 14px;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel input {
  flex: 1 1 320px;
  width: auto;
}

.filter-panel select {
  width: 180px;
  border-radius: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--cyan-dark);
}

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

.player-section {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.player-section video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-section video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
}

.player-cover img {
  object-fit: cover;
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  border: 0;
  color: var(--cyan-dark);
  font-size: 34px;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.player-cover:hover .player-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.detail-content {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.detail-one-line {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.detail-content h2,
.detail-side h2 {
  margin: 28px 0 12px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.detail-content p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.site-footer {
  margin-top: 76px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #67e8f9;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-size: 14px;
}

.is-filtered-out {
  display: none;
}

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

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

  .site-search-form input {
    width: 180px;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner > .site-search-form {
    display: none;
  }

  .mobile-nav .site-search-form {
    display: flex;
  }

  .hero-carousel {
    height: 68vh;
    min-height: 470px;
  }

  .hero-content {
    bottom: 68px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid-4,
  .movie-grid-3,
  .movie-grid-2,
  .ranking-grid,
  .ranking-grid-large,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .category-covers img {
    height: 112px;
  }

  .page-hero {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .hero-carousel {
    min-height: 430px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .content-section {
    margin: 44px 0;
  }

  .soft-panel,
  .dark-panel {
    margin-left: 0;
    margin-right: 0;
    padding: 26px 16px;
  }

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

  .rank-item img {
    width: 76px;
    height: 48px;
  }

  .detail-content {
    padding: 24px 18px;
  }

  .player-section {
    border-radius: 18px;
  }
}
