:root {
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-text: #1f2937;
  --site-muted: #64748b;
  --site-border: #e2e8f0;
  --site-teal: #0d9488;
  --site-cyan: #0891b2;
  --site-amber: #f59e0b;
  --site-rose: #f43f5e;
  --site-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488, #0891b2);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.25);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #083344;
  background: linear-gradient(135deg, #fcd34d, #fb923c);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
}

.nav-row a,
.nav-row button {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-row a:hover,
.nav-row button:hover {
  color: #fde68a;
  transform: translateY(-1px);
}

.category-dropdown {
  position: relative;
}

.category-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 220px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 18px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--site-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.category-dropdown:hover .category-menu,
.category-dropdown:focus-within .category-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #334155;
}

.category-menu a:hover {
  color: #0f766e;
  background: #ecfeff;
}

.header-search {
  min-width: 250px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.12);
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 10px 18px;
  color: #0f172a;
  outline: none;
  background: transparent;
}

.header-search button {
  margin-right: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
}

.mobile-toggle {
  display: none;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  font-weight: 650;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 18px 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 30px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78) 42%, rgba(8, 145, 178, 0.38));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.15);
  transform: scale(1.08);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fef3c7;
  font-weight: 800;
  background: rgba(20, 184, 166, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: #fcd34d;
}

.hero-desc {
  max-width: 760px;
  margin-top: 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #083344;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.32);
}

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

.btn-soft {
  color: #0f766e;
  background: #ecfeff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.hero-poster-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(14px);
}

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

.hero-poster-info {
  padding: 18px;
}

.hero-poster-info strong {
  display: block;
  font-size: 20px;
}

.hero-poster-info p {
  margin-top: 8px;
  color: #cffafe;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: #fcd34d;
}

.section-block {
  margin-top: 42px;
}

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

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.section-lead {
  max-width: 760px;
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.75;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.movie-title {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-line {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 750;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ccfbf1;
}

.card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #0891b2;
  font-weight: 800;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 20px 45px rgba(8, 145, 178, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.category-card strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: #fef3c7;
  font-weight: 800;
}

.page-hero {
  padding: 46px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(252, 211, 77, 0.28), transparent 32%), linear-gradient(135deg, #0f766e, #0891b2 55%, #0f172a);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 950;
}

.page-hero p {
  max-width: 840px;
  margin-top: 18px;
  color: #dcfce7;
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0f766e;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

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

.detail-main {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.detail-main h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 950;
  color: #0f172a;
}

.detail-main h2,
.content-card h2 {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.detail-main p,
.content-card p {
  margin-top: 12px;
  color: #475569;
  line-height: 1.85;
}

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

.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f766e;
  font-weight: 750;
  background: #ccfbf1;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.82));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #083344;
  font-size: 30px;
  font-weight: 950;
  background: linear-gradient(135deg, #fde68a, #fb923c);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.32);
}

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
}

.rank-title {
  color: #0f172a;
  font-weight: 900;
}

.rank-desc {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.5;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #a7f3d0;
  font-weight: 700;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.search-panel input {
  min-height: 52px;
  padding: 0 18px;
  outline: none;
}

.search-panel button {
  min-width: 110px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }
}

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

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

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

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

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

  .hero {
    min-height: 600px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 32px 24px 72px;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

  .page-hero {
    padding: 32px 24px;
  }

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

  .rank-item .btn-soft {
    grid-column: 2;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .logo-link {
    font-size: 22px;
  }

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

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

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

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