body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #ecfeff 100%);
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

main {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.98), rgba(8, 145, 178, 0.98), rgba(37, 99, 235, 0.98));
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  color: #ccfbf1;
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a,
.category-rail a {
  color: #ffffff;
  text-decoration: none;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-search input,
.quick-search-panel input,
.filter-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
}

.nav-search input {
  width: 210px;
  padding: 10px 14px;
}

.nav-search button,
.quick-search-panel button,
.filter-panel button,
.primary-button,
.small-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.28);
}

.nav-search button {
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.72);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-rail {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.14);
}

.rail-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.category-rail a {
  white-space: nowrap;
  color: #e0f2fe;
  font-size: 14px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 24px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  max-width: 1280px;
  margin: 34px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 58px;
  max-width: 720px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #99f6e4;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.detail-copy p,
.content-card p,
.movie-info p,
.rank-content p,
.quick-search-panel p {
  line-height: 1.72;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.small-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  text-decoration: none;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.text-link {
  color: #0d9488;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.hero-side {
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, #ecfeff, #ffffff);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.hero-side-title {
  margin-bottom: 14px;
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
}

.hero-mini-grid {
  display: grid;
  gap: 14px;
}

.quick-search-panel,
.section-block,
.page-hero,
.filter-panel,
.detail-content,
.watch-panel {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.22);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.quick-search-panel form {
  display: flex;
  gap: 10px;
}

.quick-search-panel input {
  flex: 1;
  padding: 16px 18px;
}

.quick-search-panel button {
  padding: 0 24px;
}

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

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: #64748b;
}

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

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.movie-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.compact-grid .movie-poster {
  aspect-ratio: 1 / 1;
}

.movie-poster img,
.rank-thumb img,
.category-collage img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.76));
}

.duration,
.rank-badge,
.play-mark {
  position: absolute;
  z-index: 2;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  color: #ffffff;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.movie-info h3,
.rank-content h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-info p,
.rank-content p {
  margin: 0 0 14px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.rank-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.soft-panel,
.gradient-panel {
  padding: 34px;
  border-radius: 30px;
}

.soft-panel {
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}

.gradient-panel {
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #f0fdfa);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-content a {
  color: inherit;
  text-decoration: none;
}

.small-button {
  min-height: 38px;
  padding: 0 18px;
}

.page-hero {
  margin-top: 34px;
  padding: 54px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 32%), linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.slim-hero {
  max-width: 1180px;
}

.category-grid {
  max-width: 1280px;
  margin: 0 auto 68px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.category-copy {
  padding: 20px;
}

.category-copy h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-copy p {
  margin: 0 0 16px;
  color: #64748b;
  line-height: 1.68;
}

.category-copy span {
  color: #0d9488;
  font-weight: 900;
}

.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
  flex: 1;
  padding: 15px 18px;
  background: #f8fafc;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-panel button {
  padding: 12px 18px;
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: none;
}

.filter-panel button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #0891b2);
}

.empty-state {
  display: none;
  max-width: 960px;
  margin: -20px auto 80px;
  padding: 24px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
}

.detail-bg {
  position: absolute;
}

.detail-mask {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.2)), linear-gradient(0deg, #0f172a, transparent 72%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: end;
  gap: 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #bfdbfe;
}

.breadcrumb a {
  color: #99f6e4;
  text-decoration: none;
}

.detail-copy .section-kicker {
  color: #99f6e4;
}

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.lead-text {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 19px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}

.watch-panel {
  margin-top: 56px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.big-play {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
  font-size: 42px;
}

.play-layer strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

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

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

.content-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.content-card p {
  color: #475569;
  font-size: 16px;
}

.side-info dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 20px;
}

.side-info dt {
  color: #64748b;
  font-weight: 800;
}

.side-info dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.side-info a {
  color: #0d9488;
  text-decoration: none;
}

.related-block {
  margin-top: 10px;
}

.site-footer {
  margin-top: 76px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer-brand {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.75;
}

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

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #64748b;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    min-height: 66px;
    padding: 0 16px;
  }

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

  .brand-text small,
  .category-rail {
    display: none;
  }

  .hero-carousel,
  .quick-search-panel,
  .section-block,
  .page-hero,
  .filter-panel,
  .detail-content,
  .watch-panel,
  .category-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 48px;
  }

  .hero-dots {
    left: 24px;
  }

  .quick-search-panel,
  .section-heading,
  .filter-panel {
    display: block;
  }

  .quick-search-panel form {
    margin-top: 20px;
    display: grid;
  }

  .filter-buttons {
    margin-top: 12px;
  }

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

  .rank-row {
    grid-template-columns: 44px 96px minmax(0, 1fr);
  }

  .rank-row .small-button {
    display: none;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .rank-thumb {
    height: 82px;
  }

  .detail-wrap {
    min-height: auto;
    padding: 54px 16px;
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }
}
