:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --blue: #2563eb;
  --orange-soft: #fff7ed;
  --pink-soft: #fdf2f8;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --bg: #f9fafb;
  --dark: #111827;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 25px 50px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  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,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.25);
}

.logo-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  color: #374151;
}

.desktop-nav a:hover,
.nav-group:hover > a {
  color: var(--teal);
}

.nav-group {
  position: relative;
  padding: 24px 0;
}

.nav-dropdown {
  position: absolute;
  top: 66px;
  left: 0;
  width: 180px;
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-group:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-dropdown a:hover {
  color: var(--teal);
  background: #f0fdfa;
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select,
.search-page-form input {
  min-width: 250px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.nav-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}

.nav-search button,
.mobile-nav button,
.search-page-form button,
.primary-button,
.secondary-button,
.play-overlay-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-search button:hover,
.mobile-nav button:hover,
.search-page-form button:hover,
.primary-button:hover,
.play-overlay-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.secondary-button:hover {
  background: rgba(17, 24, 39, 0.92);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav a {
  font-weight: 700;
  color: #374151;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
}

.mobile-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-category-list a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 580px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--teal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
  max-width: 620px;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #d1d5db;
  font-size: 14px;
}

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

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 28px;
  transition: 0.2s ease;
}

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

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

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  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);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.main-wrap.compact {
  padding-top: 36px;
}

.section-block {
  margin-bottom: 70px;
}

.section-card {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.section-card.teal {
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
}

.section-card.warm {
  background: linear-gradient(135deg, var(--orange-soft), var(--pink-soft));
}

.section-card.dark {
  color: #fff;
  background: #111827;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.section-card.dark .movie-card {
  background: #1f2937;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.region-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  top: 10px;
  left: 10px;
  background: var(--teal);
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
}

.rank-badge {
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 54px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.section-card.dark .movie-card h3,
.section-card.dark .meta-row {
  color: #fff;
}

.movie-card h3 a:hover {
  color: var(--teal);
}

.movie-card p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  min-height: 45px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.section-card.dark .movie-card p {
  color: #d1d5db;
}

.meta-row {
  color: #6b7280;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #111827;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: 0.5s ease;
}

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

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.feature-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
}

.feature-content span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.feature-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feature-content p {
  margin: 0;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.playlist-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f0fdfa);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.playlist-card:hover {
  transform: translateY(-3px);
  color: var(--teal-dark);
}

.playlist-card h2,
.playlist-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.playlist-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #ecfeff;
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.filter-panel input {
  flex: 1;
  min-width: 0;
}

.filter-panel select {
  min-width: 160px;
}

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-page-form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  max-width: 720px;
}

.search-page-form input {
  flex: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 34px;
  align-items: start;
}

.player-shell {
  background: #000;
}

.player-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  background: #000;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.14));
}

.play-overlay-button {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.34);
}

.player-box.is-playing .player-cover {
  display: none;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 700;
}

.detail-card,
.side-card {
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-kicker span {
  padding: 5px 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 20px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 116px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.side-item p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a:hover {
  color: #2dd4bf;
}

.footer-copy {
  margin: 0;
  padding: 0 24px 28px;
  color: #6b7280;
  text-align: center;
}

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

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

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

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

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

  .logo-text {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 540px;
  }

  .hero-content {
    padding: 72px 20px;
  }

  .hero-control {
    display: none;
  }

  .main-wrap {
    padding: 38px 16px;
  }

  .section-card {
    padding: 22px;
    border-radius: 22px;
  }

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

  .movie-grid,
  .movie-grid.three,
  .feature-grid,
  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-page-form,
  .footer-inner {
    flex-direction: column;
  }

  .filter-panel select,
  .filter-panel input,
  .search-page-form input {
    width: 100%;
    min-width: 0;
  }

  .page-hero-inner {
    padding: 42px 16px;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .side-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .side-item img {
    width: 104px;
  }
}

.mini-links {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.mini-links a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
