:root {
  --ocean: #0284c7;
  --ocean-dark: #075985;
  --island: #16a34a;
  --ink: #111827;
  --muted: #6b7280;
  --soft: 0 2px 15px rgba(0, 0, 0, .08);
  --hover: 0 8px 30px rgba(0, 0, 0, .12);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  box-shadow: var(--soft);
}
.nav-shell {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .82rem;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: var(--soft);
}
.brand-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--ocean), var(--island));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-link {
  color: #4b5563;
  font-size: .92rem;
  font-weight: 650;
  transition: color .2s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--ocean);
}
.menu-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  border-radius: .75rem;
  padding: .55rem .75rem;
  font-size: 1.2rem;
}
.mobile-menu {
  display: none;
  border-top: 1px solid #eef2f7;
  padding: .5rem 1rem 1rem;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: .85rem;
  color: #4b5563;
  font-weight: 650;
}
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--ocean);
  background: #f0f9ff;
}
.page-main {
  min-height: 65vh;
}
.section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-section {
  position: relative;
  min-height: 500px;
  height: 70vh;
  background: #f9fafb;
  padding: 1.25rem 1rem 0;
}
.hero-frame {
  position: relative;
  max-width: 80rem;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--soft);
  background: #111827;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-link,
.hero-link img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-link img {
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-link:hover img {
  transform: scale(1.06);
}
.hero-overlay,
.movie-shade,
.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .22), rgba(0, 0, 0, .05));
}
.hero-content {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  color: white;
  max-width: 58rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--ocean);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero-content .eyebrow {
  color: #bae6fd;
}
.hero-content h1 {
  margin: 0 0 .85rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
}
.hero-content p {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}
.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.hero-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  padding: .34rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: white;
  font-size: .82rem;
  font-weight: 700;
}
.chip {
  background: #f0f9ff;
  color: var(--ocean-dark);
}
.hero-action,
.primary-btn {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(90deg, var(--ocean), var(--island));
  box-shadow: var(--soft);
}
.hero-dots {
  position: absolute;
  left: 2rem;
  bottom: 1rem;
  display: flex;
  gap: .45rem;
  transform: translateY(2.25rem);
}
.hero-dot {
  width: .7rem;
  height: .7rem;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}
.hero-dot.is-active {
  width: 1.8rem;
  background: var(--ocean);
}
.content-section {
  padding: 3rem 0;
}
.section-white {
  background: white;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-heading h2,
.simple-hero h1,
.watch-section h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
}
.section-heading a {
  color: var(--ocean);
  font-weight: 800;
}
.search-band {
  padding: 2rem 0;
  background: white;
}
.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: center;
  gap: 1.5rem;
}
.search-band h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}
.quick-search,
.category-search {
  display: flex;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: .35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.quick-search input,
.category-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: .75rem .85rem;
  color: #111827;
}
.quick-search button {
  border: 0;
  border-radius: .85rem;
  padding: 0 1rem;
  color: white;
  font-weight: 800;
  background: var(--ocean);
}
.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scroll-snap-type: x mandatory;
}
.rail .movie-card {
  flex: 0 0 16rem;
  scroll-snap-align: start;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background: #e5e7eb;
  box-shadow: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover);
}
.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.movie-card:hover img {
  transform: scale(1.08);
}
.card-text {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: white;
}
.card-text strong,
.card-text em {
  display: block;
}
.card-text strong {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}
.card-text em {
  margin-top: .25rem;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-style: normal;
}
.card-text.compact strong {
  font-size: .98rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.category-tile {
  position: relative;
  min-height: 15rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--soft);
  background: #111827;
}
.category-tile img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform .45s ease;
}
.category-tile:hover img {
  transform: scale(1.08);
}
.category-tile-text {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  color: white;
}
.category-tile-text strong,
.category-tile-text em {
  display: block;
}
.category-tile-text strong {
  font-size: 1.2rem;
  font-weight: 900;
}
.category-tile-text em {
  margin-top: .4rem;
  font-style: normal;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}
.ranking-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .75rem;
}
.ranking-list a,
.ranking-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ranking-list a:hover,
.ranking-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--hover);
}
.ranking-list span,
.rank-no {
  color: var(--ocean);
  font-weight: 900;
}
.ranking-list strong,
.rank-info strong {
  font-weight: 900;
}
.ranking-list em,
.rank-info em,
.rank-meta {
  color: #6b7280;
  font-size: .88rem;
  font-style: normal;
}
.inner-page .page-hero,
.simple-hero {
  background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
  padding: 4rem 0;
}
.simple-hero p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.75;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: .9rem;
}
.crumbs a {
  color: var(--ocean-dark);
  font-weight: 700;
}
.category-search {
  max-width: 36rem;
  margin-top: 1.5rem;
  background: white;
}
.hidden-by-search {
  display: none !important;
}
.ranking-page-list {
  display: grid;
  gap: .8rem;
}
.ranking-row {
  grid-template-columns: 3.5rem 4.5rem 1fr auto;
}
.ranking-row img {
  width: 4.5rem;
  height: 6rem;
  border-radius: .75rem;
  object-fit: cover;
}
.rank-info {
  display: grid;
  gap: .3rem;
}
.detail-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f0f9ff, #ffffff 48%, #f0fdf4);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
  align-items: center;
}
.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--hover);
  background: #e5e7eb;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
}
.detail-one {
  margin: 1rem 0 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.75;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.detail-meta span {
  padding: .42rem .7rem;
  border-radius: 999px;
  background: white;
  color: #374151;
  box-shadow: var(--soft);
  font-weight: 700;
  font-size: .88rem;
}
.watch-section {
  padding: 3rem 0;
  background: #111827;
  color: white;
}
.watch-section h2 {
  color: white;
  margin-bottom: 1rem;
}
.watch-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.player-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .1));
  cursor: pointer;
  z-index: 2;
}
.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.play-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: var(--hover);
  font-size: 1.7rem;
  padding-left: .15rem;
}
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
.detail-article,
.detail-side {
  background: white;
  border-radius: 1.25rem;
  box-shadow: var(--soft);
  padding: 1.5rem;
}
.detail-article h2,
.detail-side h2 {
  font-size: 1.35rem;
  margin: 0 0 .85rem;
}
.detail-article h2:not(:first-child) {
  margin-top: 1.6rem;
}
.detail-article p {
  color: #374151;
  line-height: 1.85;
  margin: 0;
}
.detail-side dl {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .75rem;
  margin: 0;
}
.detail-side dt {
  color: #6b7280;
  font-weight: 800;
}
.detail-side dd {
  margin: 0;
  color: #111827;
}
.site-footer {
  background: #111827;
  color: #d1d5db;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  color: white;
  font-size: 1.35rem;
}
.footer-main p {
  max-width: 34rem;
  color: #9ca3af;
  line-height: 1.7;
}
.site-footer h2 {
  color: white;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.site-footer a:hover {
  color: #38bdf8;
}
.copyright {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #9ca3af;
  text-align: center;
}
@media (min-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-section {
    min-height: 520px;
    height: 72vh;
    padding: .75rem .75rem 0;
  }
  .hero-frame {
    border-radius: 1rem;
  }
  .hero-content {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.35rem;
  }
  .hero-dots {
    left: 1rem;
  }
  .search-band-inner,
  .detail-grid,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ranking-row {
    grid-template-columns: 3rem 3.8rem 1fr;
  }
  .rank-meta {
    display: none;
  }
}
@media (max-width: 520px) {
  .brand-text {
    font-size: 1.2rem;
  }
  .movie-grid,
  .preview-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }
  .rail .movie-card {
    flex-basis: 12.5rem;
  }
  .card-text {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
  }
  .category-tile {
    min-height: 12rem;
  }
  .detail-cover {
    max-width: 240px;
  }
  .play-circle {
    width: 4rem;
    height: 4rem;
  }
}
