.ntg-detail-page {
  --ntg-bg: #0b0b0b;
  --ntg-card: #111;
  --ntg-text: #f2f2f2;
  --ntg-muted: #b6b6b6;
  --ntg-accent: #ffffff;
  background: var(--ntg-bg);
  color: var(--ntg-text);
  margin: 0;
  font-family: var(--ntg-font-family, 'Helvetica Neue', Helvetica, Arial, sans-serif);
}

.ntg-detail-hero {
  position: relative;
  min-height: clamp(420px, 70vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  isolation: isolate;
  overflow: hidden;
}

.ntg-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ntg-backdrop);
  background-size: cover;
  background-position: center 18%;
  transform: scale(1.03);
  z-index: -2;
}

.ntg-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.05) 35%, rgba(9, 9, 9, 0.95) 82%);
}

.ntg-detail-content {
  max-width: min(680px, 100%);
}

.ntg-detail-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}

.ntg-detail-meta {
  margin: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #ececec;
}

.ntg-match {
  color: #4eff8a;
  font-weight: 700;
}

.ntg-badge {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.88rem;
}

.ntg-detail-synopsis {
  margin: 0 0 1rem;
  font-size: 1.04rem;
  line-height: 1.55;
  color: #f0f0f0;
  max-width: 60ch;
}

.ntg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ntg-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.ntg-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.ntg-btn--primary {
  background: #fff;
  color: #111;
}

.ntg-btn--secondary {
  background: rgba(96, 96, 96, 0.82);
  color: #fff;
}

.ntg-btn--outline {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ntg-detail-lower {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 2.8vw, 2.5rem) 2.5rem;
}

.ntg-detail-description,
.ntg-detail-sidebar {
  background: var(--ntg-card);
  border: 1px solid #252525;
  border-radius: 14px;
  padding: 1rem;
}

.ntg-detail-description p,
.ntg-detail-description li,
.ntg-detail-sidebar {
  color: var(--ntg-muted);
  line-height: 1.6;
}

.ntg-sidebar-row {
  margin-bottom: 0.8rem;
}

.ntg-sidebar-row:last-child {
  margin-bottom: 0;
}

.ntg-sidebar-label {
  color: #fff;
  font-weight: 600;
  margin-right: 0.4rem;
}

.ntg-player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  place-items: stretch;
  padding: 0;
  font-family: var(--ntg-font-family, 'Helvetica Neue', Helvetica, Arial, sans-serif);
}

.ntg-player-modal[hidden] {
  display: none !important;
}

.ntg-player-shell {
  width: 100vw;
  height: 100vh;
  background: #000;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.ntg-player-mount {
  width: 100%;
  height: 100%;
}

.ntg-player-shell iframe,
.ntg-player-shell video,
.ntg-player-shell img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.ntg-player-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  z-index: 10001;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ntg-player-error {
  color: #fff;
  padding: 1rem;
}

body.ntg-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ntg-detail-lower {
    grid-template-columns: 1fr;
  }

  .ntg-detail-synopsis {
    font-size: 0.95rem;
  }
}
