:root {
  --brand-cyan: #06b6d4;
  --brand-blue: #2563eb;
  --brand-deep: #0f172a;
  --brand-soft: #eff6ff;
  --brand-orange: #ea580c;
  --text-main: #111827;
  --text-soft: #4b5563;
  --card-bg: #ffffff;
  --line: #e5e7eb;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 24px 55px rgba(37, 99, 235, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #f8fafc;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
}

.nav-links a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #cffafe;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.search-form input {
  width: 220px;
  padding: 10px 16px;
  color: #ffffff;
  outline: 0;
  border: 0;
  background: transparent;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.search-form button,
.mobile-toggle {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.search-form button {
  padding: 10px 16px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: #2563eb;
}

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

.mobile-panel a {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 0;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 45%, #1d4ed8 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(8, 47, 73, 0.9), rgba(37, 99, 235, 0.7), rgba(15, 23, 42, 0.16)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 14% 82%, rgba(34, 211, 238, 0.3), transparent 26%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-lead {
  margin: 0 0 18px;
  color: #cffafe;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.hero-desc {
  max-width: 650px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.26);
}

.btn-primary:hover {
  background: #ecfeff;
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.btn-blue {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.82)), var(--hero-poster);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
  transform: rotate(2deg);
}

.hero-poster::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.25), transparent 34%);
}

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.hero-poster-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  padding: 68px 0;
}

.section-soft {
  background: #f1f5f9;
}

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

.section-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title span {
  display: block;
  width: 84px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.section-note {
  max-width: 760px;
  margin: -16px auto 34px;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.8;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px 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-hover);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.22)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.movie-card.wide-card .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.85);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: #64748b;
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 850;
}

.category-ribbon {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
}

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

.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-weight: 850;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
}

.page-hero {
  padding: 54px 0;
  color: #ffffff;
  background: linear-gradient(100deg, #06b6d4 0%, #2563eb 72%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  font-weight: 850;
}

.pagination span {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

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

.category-box {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-box h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 900;
}

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

.category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #ef4444);
  font-size: 22px;
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background-image: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(37, 99, 235, 0.18)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.detail-page {
  background: #f8fafc;
}

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

.detail-main,
.detail-side,
.text-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78)), var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-core {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.36);
}

.play-button-core span {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 30px solid #2563eb;
}

.detail-content {
  padding: 26px;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-intro {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.meta-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-chips span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 14px;
  font-weight: 800;
}

.text-panel {
  padding: 26px;
  margin-top: 22px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
}

.detail-side {
  padding: 22px;
}

.side-poster {
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background-image: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(15, 23, 42, 0.58)), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.meta-list {
  margin: 22px 0 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: #64748b;
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.search-panel {
  max-width: 780px;
  margin: 0 auto 36px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 18px 24px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.search-panel button {
  padding: 0 28px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid li {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

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

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

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

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

  .hero-poster {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .header-actions .search-form {
    display: none;
  }

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

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

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

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

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

  .rank-poster,
  .rank-item .btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1240px);
  }

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

  .hero-inner,
  .container-main,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .hero {
    min-height: 620px;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-board,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    border-radius: 24px;
    flex-direction: column;
  }

  .search-panel button {
    min-height: 52px;
  }
}
