
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 38%, #f0f4f7 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 233, 239, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #354354;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #498874, #86b7a5);
  box-shadow: 0 12px 30px rgba(73, 136, 116, 0.28);
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #5e7188;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #2f574c;
  background: #dceee7;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f0f4f7;
  color: #354354;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(53, 67, 84, 0.08);
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    radial-gradient(circle at 18% 24%, rgba(73, 136, 116, 0.55), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 78vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 42px;
  padding: 120px 0 72px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #498874;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-desc,
.hero-focus,
.page-hero p,
.section-head p,
.detail-lead,
.card-desc,
.detail-section p,
.site-footer p {
  line-height: 1.75;
}

.hero-desc {
  max-width: 660px;
  margin: 24px 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-focus {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.hero-focus a {
  color: #ffffff;
  font-weight: 800;
}

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

.hero-actions.slim {
  margin-top: 24px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  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: #ffffff;
  background: #498874;
  box-shadow: 0 18px 40px rgba(73, 136, 116, 0.38);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: #2f574c;
  background: rgba(255, 255, 255, 0.88);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 18px;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 24px;
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-mini-card img {
  width: 82px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-mini-card span {
  font-weight: 800;
  line-height: 1.45;
}

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

.page-hero {
  margin: 42px 0 34px;
  padding: 54px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #354354, #498874 56%, #86b7a5);
  box-shadow: 0 28px 80px rgba(53, 67, 84, 0.16);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}

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

.content-section,
.search-band,
.detail-section,
.player-section {
  margin: 54px 0;
}

.search-band,
.soft-card,
.detail-section,
.player-section {
  padding: 34px;
  border: 1px solid rgba(225, 233, 239, 0.86);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(53, 67, 84, 0.08);
}

.section-head,
.category-preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.detail-section h2,
.player-section h2,
.category-preview-head h2 {
  margin: 0;
  color: #1f2937;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.detail-section h2,
.player-section h2,
.category-preview-head h2 {
  font-size: 28px;
}

.section-head p,
.card-desc,
.detail-lead,
.meta-line,
.site-footer p,
.detail-section p {
  color: #5e7188;
}

.text-link,
.category-preview-head a {
  color: #396d5d;
  font-weight: 800;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dce8e1;
  border-radius: 18px;
  color: #354354;
  background: #ffffff;
  padding: 0 16px;
  outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: #498874;
  box-shadow: 0 0 0 4px rgba(73, 136, 116, 0.12);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(225, 233, 239, 0.86);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(53, 67, 84, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 70px rgba(53, 67, 84, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #354354;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.rank-badge,
.score {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: #498874;
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #396d5d;
}

.meta-line {
  margin: 0 0 10px;
  font-size: 13px;
}

.card-desc {
  min-height: 48px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #2f574c;
  background: #eef7f3;
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-tile {
  min-height: 138px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #354354, #498874);
  box-shadow: 0 18px 50px rgba(53, 67, 84, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(53, 67, 84, 0.18);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 24px;
  font-weight: 800;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-preview {
  padding: 28px 0;
  border-top: 1px solid #e1e9ef;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 22px;
  color: #5e7188;
  font-size: 14px;
}

.breadcrumb a {
  color: #396d5d;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #f8fbf9);
  box-shadow: 0 22px 70px rgba(53, 67, 84, 0.1);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  background: #354354;
  box-shadow: 0 24px 60px rgba(53, 67, 84, 0.18);
}

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

.detail-copy h1 {
  color: #111827;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-lead {
  margin: 18px 0 22px;
  font-size: 18px;
}

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

.info-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f0f4f7;
}

.info-grid dt {
  color: #7890a8;
  font-size: 12px;
  font-weight: 800;
}

.info-grid dd {
  margin: 5px 0 0;
  color: #354354;
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #05070a;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #396d5d;
}

.detail-section p {
  margin: 14px 0 0;
  font-size: 17px;
}

.review-box {
  border-left: 4px solid #498874;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0 28px;
  border-top: 1px solid #e1e9ef;
  background: linear-gradient(180deg, #f8fbf9, #f0f4f7);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #5e7188;
  font-size: 14px;
}

.footer-links a:hover {
  color: #396d5d;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid #e1e9ef;
  text-align: center;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

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

.animate-fade-in {
  animation: fadeIn 0.55s ease both;
}

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

  .menu-button {
    display: block;
  }

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

  .hero-panel {
    max-width: 620px;
  }

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

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 90px 0 40px;
  }

  .hero-panel {
    display: none;
  }

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

  .page-hero,
  .search-band,
  .soft-card,
  .detail-section,
  .player-section,
  .detail-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .section-head,
  .category-preview-head {
    align-items: start;
    flex-direction: column;
  }

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

  .card-grid,
  .large-grid,
  .small-grid,
  .category-grid,
  .category-grid.wide,
  .footer-grid,
  .detail-hero,
  .info-grid {
    grid-template-columns: 1fr;
  }

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