:root {
  --color-ocean-dark: #0a2540;
  --color-ocean-primary: #1a4d7a;
  --color-ocean-light: #2e6ba8;
  --color-sea-foam: #4fb3bf;
  --color-sand: #f4e8d0;
  --color-coral: #ff6b6b;
  --color-sunset: #ff9f43;
  --color-sky: #74b9ff;
  --page-bg: linear-gradient(180deg, #0a2540 0%, #123c62 45%, #0a2540 100%);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.52);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: #ffffff;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 37, 64, 0.78);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  box-shadow: 0 12px 26px rgba(79, 179, 191, 0.25);
}

.logo-text,
.gradient-text {
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: #ffffff;
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #06192d;
}

.hero-track,
.hero-slide {
  min-height: 76vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(116, 185, 255, 0.32), transparent 32%),
    linear-gradient(90deg, rgba(10, 37, 64, 0.96) 0%, rgba(10, 37, 64, 0.78) 42%, rgba(10, 37, 64, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.18) 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 56px;
  width: min(1240px, calc(100% - 32px));
  min-height: 76vh;
  margin: 0 auto;
  padding: 68px 0 84px;
}

.eyebrow,
.section-title span,
.rank-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(79, 179, 191, 0.42);
  border-radius: 999px;
  color: var(--color-sea-foam);
  background: rgba(79, 179, 191, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-tags,
.tag-cloud,
.genre-line,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-cloud span,
.genre-line span,
.card-tags span {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.hero-tags span,
.tag-cloud span,
.genre-line span {
  padding: 7px 12px;
}

.card-tags span {
  padding: 4px 8px;
  font-size: 12px;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  box-shadow: 0 14px 30px rgba(79, 179, 191, 0.25);
}

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

.hero-poster,
.detail-poster,
.category-cover,
.poster-link {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.hero-poster {
  border-radius: 30px;
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-link img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster img {
  aspect-ratio: 3 / 4;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--color-sea-foam);
}

.section {
  padding: 78px 0;
}

.section-title {
  margin-bottom: 32px;
  text-align: center;
}

.section-title.align-left {
  text-align: left;
}

.section-title h2,
.rank-head h2,
.article-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.section-title p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.section-title.align-left p {
  margin-left: 0;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.movie-card:hover,
.hover-lift:hover {
  border-color: rgba(79, 179, 191, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.poster-link img {
  aspect-ratio: 3 / 4;
}

.movie-card:hover .poster-link img,
.category-tile:hover .category-cover img {
  transform: scale(1.07);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-sunset), var(--color-coral));
  font-weight: 900;
}

.card-content {
  display: flex;
  min-height: 176px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card.compact .card-content {
  min-height: 126px;
}

.card-content h2 {
  font-size: 18px;
  line-height: 1.35;
}

.card-content h2 a:hover {
  color: var(--color-sea-foam);
}

.card-content p {
  color: var(--text-soft);
  line-height: 1.7;
}

.card-meta {
  color: var(--text-dim);
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

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

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

.category-tile {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.category-cover {
  border-radius: 18px;
  box-shadow: none;
}

.category-cover img {
  aspect-ratio: 3 / 4;
}

.category-tile h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile p {
  color: var(--text-soft);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-card,
.article-card,
.player-wrap,
.filter-panel,
.page-hero,
.detail-hero,
.next-card {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.rank-card {
  position: sticky;
  top: 102px;
  border-radius: 28px;
  padding: 20px;
}

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

.rank-head a {
  color: var(--color-sky);
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-list.large {
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-list.large .ranking-row {
  grid-template-columns: 56px 78px minmax(0, 1fr) 28px;
  padding: 14px;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.ranking-number {
  color: var(--color-sunset);
  font-weight: 900;
}

.ranking-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-list.large .ranking-row img {
  width: 78px;
  height: 104px;
}

.ranking-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-text strong,
.ranking-text em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-text em {
  color: var(--text-dim);
  font-size: 13px;
  font-style: normal;
}

.ranking-arrow {
  color: var(--color-sea-foam);
  font-size: 30px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 24px;
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  outline: none;
  color: #ffffff;
  background: rgba(5, 22, 38, 0.66);
  padding: 0 14px;
}

.search-box input:focus,
.select-box select:focus {
  border-color: rgba(79, 179, 191, 0.72);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 16px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.page-hero {
  margin-top: 28px;
  padding: 54px;
  border-radius: 32px;
}

.detail-hero {
  margin-top: 28px;
  padding: 24px;
  border-radius: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--text-dim);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--color-sea-foam);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.genre-line,
.tag-cloud {
  margin-top: 18px;
}

.player-section {
  padding-top: 42px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020811;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020811;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(79, 179, 191, 0.28), transparent 34%),
    rgba(2, 8, 17, 0.42);
}

.play-overlay[hidden] {
  display: none;
}

.play-symbol {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-sea-foam), var(--color-sky));
  box-shadow: 0 18px 42px rgba(79, 179, 191, 0.32);
  font-size: 30px;
  text-indent: 4px;
}

.play-overlay strong {
  font-size: 20px;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.article-card {
  border-radius: 28px;
  padding: 28px;
}

.article-card.accent {
  border-color: rgba(255, 159, 67, 0.32);
}

.article-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.article-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.twin-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
  padding-bottom: 0;
}

.next-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
}

.next-card span {
  color: var(--color-sea-foam);
  font-weight: 800;
}

.next-card strong {
  font-size: 22px;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 22, 38, 0.64);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-grid p {
  max-width: 420px;
  margin-top: 16px;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(79, 179, 191, 0.18);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: var(--text-dim);
  font-size: 14px;
}

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

  .split-layout,
  .content-section {
    grid-template-columns: 1fr;
  }

  .rank-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(10, 37, 64, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .hero-control {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

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

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

  .site-nav {
    top: 68px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: 88vh;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-grid.small,
  .related-grid,
  .twin-links {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ranking-list.large .ranking-row,
  .ranking-row {
    grid-template-columns: 38px 56px minmax(0, 1fr) 18px;
  }

  .ranking-list.large .ranking-row img,
  .ranking-row img {
    width: 56px;
    height: 76px;
  }

  .content-section {
    gap: 16px;
  }
}
