* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background: linear-gradient(180deg, #f0f9f7 0%, #ffffff 34%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #98d8c8 0%, #7bc8b4 50%, #5ba896 100%);
  box-shadow: 0 12px 30px rgba(91, 168, 150, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #5ba896;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.22);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(41, 80, 73, 0.16);
}

.header-search input,
.mobile-search input,
.hero-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: #1f2937;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  background: #5ba896;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 4px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(31, 41, 55, 0.16);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  color: #374151;
  border-radius: 14px;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #3f8f80;
  background: rgba(152, 216, 200, 0.15);
}

.mobile-search {
  margin: 12px 0;
  border: 1px solid rgba(152, 216, 200, 0.35);
}

.mobile-search input {
  width: 100%;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #98d8c8 0%, #7bc8b4 45%, #5ba896 100%);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(40px);
  pointer-events: none;
}

.hero-glow-left {
  left: -120px;
  top: -140px;
}

.hero-glow-right {
  right: -160px;
  bottom: -160px;
}

.hero-shell {
  position: relative;
  min-height: 600px;
  padding: 62px 0 34px;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 450px;
  gap: 48px;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.is-active {
  display: flex;
}

.hero-copy {
  flex: 1 1 55%;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #5ba896;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(31, 41, 55, 0.16);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31, 41, 55, 0.18);
}

.hero-poster {
  position: relative;
  flex: 0 1 390px;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(39, 99, 87, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: #5ba896;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.24);
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.hero-search {
  width: min(520px, 100%);
}

.hero-search input {
  width: 100%;
  padding: 15px 18px;
}

.hero-search button {
  padding: 15px 28px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.category-strip {
  display: flex;
  gap: 12px;
  margin-top: -28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(91, 168, 150, 0.22);
  overflow-x: auto;
  position: relative;
  z-index: 5;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 999px;
  color: #3f8f80;
  background: rgba(152, 216, 200, 0.18);
  font-weight: 800;
}

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

.soft-band {
  background: linear-gradient(90deg, rgba(152, 216, 200, 0.12), rgba(123, 200, 180, 0.1));
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: #98d8c8;
  box-shadow: 0 14px 30px rgba(91, 168, 150, 0.24);
}

.section-more,
.text-link {
  color: #4b9b8c;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(152, 216, 200, 0.45), rgba(91, 168, 150, 0.35));
}

.card-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card-large .card-cover img {
  aspect-ratio: 16 / 9;
}

.card-type,
.card-duration,
.card-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.card-type {
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #98d8c8;
  font-size: 13px;
}

.card-duration {
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 13px;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #5ba896;
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 20px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #4b9b8c;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-body .tag-list span,
.detail-tags span {
  color: #4b9b8c;
  background: rgba(152, 216, 200, 0.17);
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  padding: 64px 0 80px;
}

.rank-panel,
.recommend-panel,
.story-card,
.ranking-block,
.filter-panel,
.category-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.09);
}

.rank-panel,
.recommend-panel {
  padding: 28px;
}

.rank-list,
.ranking-table {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li + li,
.ranking-table li + li {
  border-top: 1px solid #edf2f2;
}

.rank-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 0;
  align-items: center;
}

.rank-list span,
.rank-no {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #98d8c8;
  font-weight: 900;
}

.rank-list strong {
  display: block;
  color: #1f2937;
  font-size: 16px;
}

.rank-list em {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

.compact-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 18px;
  background: rgba(152, 216, 200, 0.18);
}

.compact-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.compact-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 12px 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
  font-weight: 800;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  margin-top: 34px;
  padding: 58px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(120deg, #98d8c8 0%, #7bc8b4 52%, #5ba896 100%);
  box-shadow: 0 24px 60px rgba(91, 168, 150, 0.24);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px;
  align-items: center;
}

.category-thumb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
}

.category-thumb img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: rgba(152, 216, 200, 0.2);
}

.category-card h2 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 15px;
  color: #6b7280;
  line-height: 1.7;
}

.filter-panel {
  margin: 34px 0 28px;
  padding: 20px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 14px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(152, 216, 200, 0.55);
  border-radius: 16px;
  padding: 0 16px;
  color: #1f2937;
  background: #ffffff;
  outline: 0;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: #5ba896;
  box-shadow: 0 0 0 4px rgba(152, 216, 200, 0.18);
}

.filter-count {
  margin-top: 12px;
  color: #5ba896;
  font-weight: 800;
}

[data-card].is-hidden {
  display: none;
}

.ranking-layout {
  display: grid;
  gap: 30px;
  padding: 42px 0 80px;
}

.ranking-block {
  padding: 28px;
}

.ranking-table a {
  display: grid;
  grid-template-columns: 46px 70px minmax(160px, 1fr) minmax(180px, 2fr) 86px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.ranking-table img {
  width: 70px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(152, 216, 200, 0.2);
}

.ranking-table strong {
  color: #1f2937;
}

.ranking-table em {
  color: #6b7280;
  font-style: normal;
}

.ranking-table b {
  display: inline-flex;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #4b9b8c;
  background: rgba(152, 216, 200, 0.16);
}

.detail-hero {
  padding: 48px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #111827 0%, #295048 45%, #5ba896 100%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.detail-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #5ba896;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.46));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.detail-content {
  padding: 46px 0 80px;
}

.story-card {
  padding: 30px;
  margin-bottom: 26px;
}

.story-card h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding-top: 18px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.footer-logo .logo-mark {
  color: #ffffff;
  background: #98d8c8;
}

.site-footer p {
  max-width: 360px;
  color: #a7b0bd;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
  color: #a7b0bd;
}

.site-footer a:hover {
  color: #98d8c8;
}

.footer-bottom {
  padding: 18px 16px 24px;
  color: #a7b0bd;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-slide,
  .detail-layout,
  .two-column-section {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

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

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

  .filter-row {
    grid-template-columns: 1fr 160px 150px;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 40px 0 28px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .hero-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    width: 100%;
  }

  .category-strip {
    margin-top: -18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .movie-grid-three,
  .movie-grid-four,
  .compact-grid,
  .category-grid-page,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .ranking-table a {
    grid-template-columns: 42px 58px 1fr;
  }

  .ranking-table em,
  .ranking-table b {
    grid-column: 3 / -1;
  }

  .detail-hero {
    padding: 28px 0;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .story-card {
    padding: 22px;
  }
}
