
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --accent: #0891b2;
  --amber: #d97706;
  --ink: #171717;
  --muted: #525252;
  --soft: #fafafa;
  --line: #e5e5e5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.brand-mark,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 21px;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  position: relative;
  color: #404040;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input {
  width: 260px;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.header-search button,
.mobile-search button,
.filter-bar button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f5f5f5;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #404040;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel-inner {
  padding: 16px 0 18px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #404040;
  font-weight: 650;
}

.mobile-link:hover {
  color: var(--primary);
  background: #f5f5f5;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translateX(-50%);
  padding: 48px 0 68px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.teal {
  color: var(--primary);
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #f4f4f5;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e5e5e5;
  font-size: clamp(16px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions,
.page-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  color: var(--primary-dark);
  background: #ccfbf1;
}

.btn.glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.55);
}

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

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

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

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

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

.section {
  padding: 72px 0;
}

.section.white {
  background: #ffffff;
}

.section.muted {
  background: #f5f5f5;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.feature-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.text-link,
.quick-links a {
  color: var(--primary);
  font-weight: 800;
}

.text-link:hover,
.quick-links a:hover {
  color: var(--primary-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.feature-poster a {
  position: relative;
  display: block;
  height: 430px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-poster img,
.ranking-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-poster span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.feature-poster div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: #ffffff;
}

.feature-poster p {
  margin: 0 0 8px;
  color: #5eead4;
  font-weight: 800;
}

.feature-poster h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.feature-poster em {
  color: #e5e5e5;
  font-style: normal;
}

.feature-poster a:hover img {
  transform: scale(1.06);
}

.feature-copy p {
  color: #525252;
  font-size: 18px;
}

.filter-bar.large {
  margin-top: 24px;
}

.filter-bar.large input {
  width: min(480px, 100%);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

.play-dot,
.play-large {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.88);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  opacity: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), #fbbf24);
  font-size: 14px;
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-info h2 a:hover {
  color: var(--primary);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: #737373;
  font-size: 14px;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.movie-card.compact .movie-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 132px;
}

.movie-card.compact .movie-info h2 {
  font-size: 16px;
}

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

.category-tile,
.overview-card {
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.overview-card:hover {
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-tile > a {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.category-tile strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.category-tile span,
.overview-card p {
  color: #525252;
  font-size: 14px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.mini-links a {
  color: #0f766e;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0fdfa;
  font-size: 12px;
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.ranking-list,
.side-card-grid {
  display: grid;
  gap: 16px;
}

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

.page-hero,
.detail-hero {
  background: linear-gradient(135deg, #0f766e, #0891b2);
  color: #ffffff;
  padding: 58px 0;
}

.page-hero h1,
.page-hero p,
.detail-hero h1,
.detail-hero p {
  color: #ffffff;
}

.page-hero p,
.detail-line {
  max-width: 820px;
  color: #ecfeff;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

.breadcrumb i {
  font-style: normal;
  opacity: 0.65;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 18px;
}

.overview-card .mini-links {
  padding: 0;
  margin: 12px 0;
}

.overview-card h2 {
  margin: 4px 0 8px;
  color: var(--primary-dark);
  font-size: 26px;
}

.overview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 16px;
}

.overview-media img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.filter-empty {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: #ccfbf1;
  font-weight: 800;
}

.ranking-hero-grid,
.detail-grid,
.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
}

.ranking-lead {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.ranking-lead::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.ranking-lead span,
.ranking-lead strong {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
}

.ranking-lead span {
  bottom: 64px;
  color: #5eead4;
  font-weight: 800;
}

.ranking-lead strong {
  bottom: 24px;
  color: #ffffff;
  font-size: 28px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

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

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 42px 0;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-large {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 999px;
  font-size: 28px;
}

.player-cover strong {
  font-size: 22px;
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.detail-block {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  background: #ffffff;
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
  color: #171717;
}

.detail-block p {
  margin: 0;
  color: #404040;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.site-footer {
  color: #d4d4d4;
  background: #171717;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 430px;
  color: #a3a3a3;
}

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

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

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

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid #262626;
  color: #737373;
  text-align: center;
}

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

  .menu-toggle {
    display: flex;
  }

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

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

  .feature-grid,
  .ranking-layout,
  .ranking-hero-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .brand-text em {
    display: none;
  }

  .hero {
    height: 70vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
    gap: 14px;
  }

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

  .movie-card.compact {
    grid-template-columns: 104px 1fr;
  }

  .movie-card.compact .movie-cover {
    min-height: 128px;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-info h2 {
    font-size: 16px;
  }

  .feature-grid,
  .overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-poster a,
  .ranking-lead {
    height: 320px;
  }

  .overview-media img {
    height: 96px;
  }

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

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

@media (max-width: 520px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

  .hero-actions,
  .page-actions,
  .quick-links,
  .filter-bar.large {
    display: grid;
  }

  .btn,
  .filter-bar.large button,
  .filter-bar.large input {
    width: 100%;
  }

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

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

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