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

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.22);
}

.logo-text {
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 20px;
}

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

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a.is-active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.15);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.75);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  padding: 12px 0 18px;
}

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

.mobile-nav .site-container {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.28) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.12) 42%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 130px 0 92px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-weight: 700;
  font-size: 14px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin: 20px 0 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.82);
  font-size: 14px;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-secondary,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button-primary {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.22);
}

.button-primary:hover {
  background: #ea580c;
  transform: translateY(-2px) scale(1.02);
}

.button-secondary {
  min-height: 52px;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.42);
  background: rgba(15, 23, 42, 0.6);
}

.button-secondary:hover {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(249, 115, 22, 0.14);
  transform: translateY(-2px);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.85);
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.76);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 30px;
  background: #f97316;
}

.main-section {
  padding: 68px 0;
}

.main-section.soft {
  background: rgba(30, 41, 59, 0.28);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.section-intro,
.page-intro {
  color: #94a3b8;
  line-height: 1.8;
}

.page-hero {
  padding: 58px 0 28px;
}

.page-hero h1 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
}

.search-panel {
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(130px, 170px));
  gap: 12px;
}

.search-input,
.search-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  color: #e2e8f0;
  outline: none;
  background: rgba(30, 41, 59, 0.8);
}

.search-input:focus,
.search-select:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  transform: translateY(-5px);
}

.poster-link,
.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-badge,
.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin-bottom: 9px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover .card-title,
.rank-card:hover h3,
.category-card:hover h3 {
  color: #fb923c;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(51, 65, 85, 0.72);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.11);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.25));
}

.category-card-content {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.category-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.rank-card:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(51, 65, 85, 0.58);
  transform: translateY(-3px);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  height: 150px;
  border-radius: 14px;
  background: #111827;
}

.rank-number {
  top: 8px;
  left: 8px;
}

.rank-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.rank-content h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.rank-content p {
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-panel,
.content-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.54);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.player-panel {
  position: relative;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.25);
  font-size: 32px;
  transform: translateZ(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-button-core {
  background: #ea580c;
  transform: scale(1.08);
}

.detail-panel {
  padding: 26px;
}

.detail-panel h1 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-line {
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.14);
  font-size: 14px;
}

.content-panel {
  margin-top: 28px;
  padding: 28px;
}

.content-panel h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.content-panel p {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 2;
}

.detail-poster {
  overflow: hidden;
  margin-top: 20px;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  padding: 42px 0;
  color: #94a3b8;
  text-align: center;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 900;
}

.footer-inner p,
.footer-inner a {
  color: #94a3b8;
  line-height: 1.9;
}

.footer-inner a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  padding: 18px 0;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .rank-list,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-control {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    min-height: 680px;
  }

  .hero-content {
    padding: 108px 0 82px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

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

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

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

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

  .rank-cover {
    height: 126px;
  }

  .content-panel,
  .detail-panel {
    padding: 20px;
  }
}
