* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f9fafb;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #0d9488;
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.25);
}

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

.nav-link,
.nav-button {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
  background: transparent;
  border: 0;
  padding: 0;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
  color: #0d9488;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 32px;
  left: 0;
  width: 210px;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
}

.dropdown-panel a:hover {
  color: #0d9488;
  background: #ccfbf1;
}

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

.header-search input,
.mobile-panel input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  background: #ffffff;
  color: #111827;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

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

.header-search button:hover,
.mobile-panel button:hover,
.large-search button:hover,
.filter-bar button:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  color: #111827;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  padding: 18px 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 650;
}

.mobile-logo {
  color: #0d9488;
  font-weight: 800;
  font-size: 20px;
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(to right, #111827, #1f2937);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000000, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-pill,
.detail-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.quick-tags a {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.tag-row span,
.detail-tags a,
.quick-tags a {
  background: #f3f4f6;
  color: #4b5563;
}

.detail-tags a:hover,
.quick-tags a:hover {
  background: #ccfbf1;
  color: #0f766e;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: #0d9488;
}

.btn-primary:hover {
  background: #0f766e;
}

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

.btn-light {
  color: #111827;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.page-section {
  padding: 56px 0;
}

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

.section-head h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-more {
  color: #0d9488;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

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

.poster-link img,
.compact-card img,
.ranking-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.badge-left {
  top: 10px;
  left: 10px;
  background: #0d9488;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #0d9488;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 15px;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  color: #ffffff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img,
.category-layer {
  position: absolute;
  inset: 0;
}

.category-layer {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

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

.category-tile em {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 32px;
}

.rank-list,
.compact-grid,
.compact-stack {
  display: grid;
  gap: 14px;
}

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

.compact-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.compact-card img {
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #e5e7eb;
}

.compact-card span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.compact-card strong {
  color: #111827;
  line-height: 1.35;
}

.compact-card em,
.meta-line {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.search-panel,
.content-card,
.side-card,
.category-block {
  border-radius: 22px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.search-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.search-panel p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.7;
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

.page-hero,
.gradient-hero {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(to right, #0d9488, #2563eb);
}

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

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

.category-overview {
  display: grid;
  gap: 24px;
}

.category-block-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-block h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.ranking-hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.ranking-hero img,
.ranking-hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ranking-hero img {
  object-fit: cover;
}

.ranking-hero-layer {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

.ranking-hero-copy {
  position: relative;
  z-index: 2;
}

.ranking-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
}

.ranking-hero p {
  max-width: 660px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: #0d9488;
  font-weight: 900;
}

.ranking-poster {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.ranking-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: #4b5563;
  line-height: 1.7;
}

.player-section {
  padding: 28px 0 0;
  background: #000000;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 0 16px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

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

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.88);
  font-size: 34px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.player-shell.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.big-play:hover {
  background: #0f766e;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls input[type="range"] {
  width: 100%;
  accent-color: #0d9488;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.control-row button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.control-row button:hover {
  background: #0d9488;
}

.control-row span {
  margin-right: auto;
  color: #e5e7eb;
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 48px 0 10px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-title-block h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4b5563;
}

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 8px 12px;
  background: #e5e7eb;
}

.detail-meta a {
  color: #0d9488;
  background: #ccfbf1;
  font-weight: 750;
}

.content-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.wide-link {
  display: block;
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px 16px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
}

.site-footer {
  margin-top: 58px;
  padding: 44px 0 22px;
  color: #9ca3af;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.75;
}

.footer-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links {
  flex-direction: column;
}

.footer-tags a,
.footer-links a {
  color: #d1d5db;
}

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

.footer-copy {
  width: min(100% - 32px, 1280px);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  text-align: center;
  color: #6b7280;
}

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

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

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

  .header-inner {
    justify-content: space-between;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 540px;
  }

  .hero-copy {
    padding-right: 48px;
  }

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

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

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

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

  .ranking-item {
    grid-template-columns: 48px 150px minmax(0, 1fr);
  }
}

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

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

  .hero {
    height: 520px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .large-search,
  .mobile-panel form {
    grid-template-columns: 1fr;
  }

  .btn,
  .large-search button {
    width: 100%;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 42px 1fr;
  }

  .ranking-poster {
    grid-column: 2;
  }

  .ranking-info {
    grid-column: 1 / -1;
  }

  .player-shell {
    border-radius: 18px 18px 0 0;
  }

  .big-play {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .control-row {
    flex-wrap: wrap;
  }

  .control-row span {
    width: 100%;
    order: -1;
  }
}
