* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e5e7eb;
  background: linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #0f172a;
}

body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .96), rgba(15, 23, 42, .96));
  border-bottom: 1px solid #334155;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, #67e8f9 0%, #06b6d4 36%, #1d4ed8 78%);
  box-shadow: 0 0 24px rgba(34, 211, 238, .55);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.brand-mark.small {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.brand-text,
.footer-brand {
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  color: #d1d5db;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, .55);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(51, 65, 85, .55);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding-top: 12px;
  border-top: 1px solid #334155;
}

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

.main-shell {
  padding-top: 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, .10), transparent 48%, rgba(59, 130, 246, .11));
  pointer-events: none;
}

.hero-glow-one,
.hero-glow-two {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
}

.hero-glow-one {
  width: 290px;
  height: 290px;
  left: 14%;
  top: 16%;
  background: rgba(6, 182, 212, .22);
}

.hero-glow-two {
  width: 390px;
  height: 390px;
  right: 10%;
  bottom: 4%;
  background: rgba(37, 99, 235, .20);
}

.hero-inner,
.section-inner,
.footer-inner,
.detail-inner {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-heading {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
}

.hero-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

.hero-search {
  margin: 26px auto 0;
  max-width: 620px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(14, 116, 144, .55);
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 24px 80px rgba(6, 182, 212, .08);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(51, 65, 85, .7);
  border-radius: 14px;
  outline: none;
}

.search-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .16);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 34px rgba(6, 182, 212, .20);
}

.secondary-btn {
  color: #cbd5e1;
  background: rgba(51, 65, 85, .62);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .28);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(14, 116, 144, .48);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, .88), rgba(15, 23, 42, .88));
  box-shadow: 0 30px 85px rgba(0, 0, 0, .35);
}

.hero-slide.is-active {
  display: grid;
}

.hero-cover {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  min-height: 355px;
  object-fit: cover;
  transition: transform .5s ease;
}

.hero-cover:hover img {
  transform: scale(1.06);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px 18px 0;
}

.hero-kicker,
.meta-line {
  color: #22d3ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero-copy h2 {
  margin: 12px 0 16px;
  color: #ffffff;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: #cffafe;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(14, 116, 144, .55);
  border-radius: 999px;
  background: rgba(6, 182, 212, .11);
}

.hero-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #334155;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #06b6d4;
}

.section {
  padding: 54px 0;
}

.section.soft {
  background: rgba(15, 23, 42, .50);
}

.section.band {
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  background: linear-gradient(90deg, rgba(22, 78, 99, .20), rgba(30, 58, 138, .18), rgba(88, 28, 135, .16));
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, .94), rgba(15, 23, 42, .96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .20);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, .55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #020617;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 11px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(6, 182, 212, .88);
}

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

.movie-card-title {
  margin: 7px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-title a:hover,
.compact-card h3 a:hover,
.rank-card h3 a:hover {
  color: #22d3ee;
}

.movie-card-desc {
  min-height: 46px;
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 14px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, .85);
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, .50);
  background: rgba(30, 41, 59, .75);
}

.compact-poster {
  overflow: hidden;
  border-radius: 14px;
  background: #020617;
}

.compact-poster img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.compact-body h3 {
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.28;
}

.compact-body p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 155px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, .84);
  border-radius: 22px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(6, 182, 212, .15);
  filter: blur(24px);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, .55);
  box-shadow: 0 26px 58px rgba(0, 0, 0, .28);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: #94a3b8;
  line-height: 1.65;
}

.category-card span {
  position: relative;
  color: #22d3ee;
  font-weight: 800;
}

.page-title {
  padding: 112px 0 36px;
  background: linear-gradient(135deg, rgba(6, 182, 212, .10), transparent, rgba(59, 130, 246, .08));
}

.search-row {
  margin-top: 24px;
  max-width: 560px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 62px 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, .82);
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
}

.rank-num {
  color: #22d3ee;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #020617;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.rank-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.detail-page {
  padding-top: 64px;
}

.detail-top {
  position: relative;
  overflow: hidden;
  padding: 58px 0 42px;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, .16), transparent 30%), linear-gradient(180deg, #0f172a, #020617);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

.detail-title {
  max-width: 980px;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.detail-meta span {
  padding: 6px 12px;
  border: 1px solid rgba(14, 116, 144, .42);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, .10);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  padding: 42px 0 24px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, .50);
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .62));
  cursor: pointer;
}

.player-wrap.is-playing .player-overlay {
  display: none;
}

.play-circle {
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 0 44px rgba(6, 182, 212, .45);
  font-size: 36px;
  line-height: 1;
  padding-left: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding-bottom: 54px;
}

.content-panel,
.side-panel {
  border: 1px solid rgba(51, 65, 85, .82);
  border-radius: 22px;
  background: rgba(15, 23, 42, .72);
}

.content-panel {
  padding: 28px;
}

.side-panel {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 25px;
}

.content-panel p {
  margin: 0 0 22px;
  color: #cbd5e1;
  line-height: 1.9;
  text-align: justify;
}

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

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

.side-item img {
  width: 82px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.side-item strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  line-height: 1.35;
}

.side-item span {
  color: #94a3b8;
  font-size: 13px;
}

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

.site-footer {
  border-top: 1px solid #1e293b;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 36px;
  padding: 38px 0;
}

.footer-inner p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #22d3ee;
}

[hidden] {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: .85;
  }
  50% {
    opacity: .55;
  }
}

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

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

  .hero-copy {
    padding: 6px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

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

  .hero {
    padding-top: 48px;
  }

  .hero-search {
    display: grid;
  }

  .hero-slide {
    padding: 14px;
    border-radius: 22px;
  }

  .hero-cover,
  .hero-cover img {
    min-height: 245px;
  }

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

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

  .rank-num {
    display: none;
  }

  .rank-card .secondary-btn {
    grid-column: 1 / -1;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .nav-shell,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .detail-inner {
    width: min(100% - 22px, 1280px);
  }

  .content-panel {
    padding: 20px;
  }

  .play-circle {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }
}
