.nmfcd-row-container {
  --nmfcd-bg-netflix: #0b1829;
  --nmfcd-bg-card: #122a45;
  --nmfcd-text: #f3f6fb;
  --nmfcd-muted: #c6d3e6;
  --nmfcd-accent: #f3c200;
  --nmfcd-ease: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  isolation: isolate;
  margin: 40px 0 60px;
  background: var(--nmfcd-bg-netflix);
  color: var(--nmfcd-text);
  font-family: 'Space Grotesk', sans-serif;
}

.nmfcd-row-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  margin: 0 0 15px 50px;
  color: #e5e5e5;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.nmfcd-row-posters {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 50px 160px 50px;
  gap: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}

.nmfcd-row-posters::-webkit-scrollbar {
  display: none;
}

.nmfcd-row-poster {
  position: relative;
  flex: 0 0 calc(20% - 12px);
  min-width: 240px;
  border-radius: 8px;
  overflow: visible;
  transition: transform var(--nmfcd-ease);
}

.nmfcd-image-shell {
  border-radius: 8px;
}

.nmfcd-poster-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: border var(--nmfcd-ease);
  border: 2px solid transparent;
  display: block;
  background: linear-gradient(160deg, #183c64 0%, #0b1829 100%);
}

.nmfcd-poster-img--empty {
  min-height: 240px;
}

.nmfcd-row-poster:hover {
  transform: scale(1.05);
  z-index: 10;
}

.nmfcd-row-poster:hover .nmfcd-poster-img {
  border-color: var(--nmfcd-accent);
  border-radius: 8px;
}

.nmfcd-poster-info {
  position: absolute;
  top: calc(100% - 45px);
  left: 0;
  width: 100%;
  background: var(--nmfcd-bg-card);
  border-radius: 8px;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.8);
  border: none;
  box-sizing: border-box;
  z-index: 11;
}

.nmfcd-row-poster:hover .nmfcd-poster-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nmfcd-poster-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.nmfcd-poster-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--nmfcd-accent);
  color: #0b1829;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(243, 194, 0, 0.4);
  text-decoration: none !important;
}

.nmfcd-poster-btn:hover,
.nmfcd-poster-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(243, 194, 0, 0.6);
  color: #0b1829;
}

.nmfcd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.nmfcd-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nmfcd-poster-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  margin: 0 0 5px;
  color: #fff;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.05;
  text-transform: uppercase;
}

.nmfcd-poster-meta {
  font-size: 13px;
  color: var(--nmfcd-accent);
  font-weight: 700;
  text-align: center;
}

.nmfcd-row-btn {
  position: absolute;
  top: 40px !important;
  bottom: 160px !important;
  width: 50px !important;
  min-width: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fff !important;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 3rem !important;
  line-height: 1 !important;
  z-index: 50 !important;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: auto !important;
}

.nmfcd-row-btn.left {
  left: 0;
}

.nmfcd-row-btn.right {
  right: 0;
}

.nmfcd-row-container:hover > .nmfcd-row-btn {
  opacity: 1;
}

.nmfcd-row-btn:hover,
.nmfcd-row-btn:focus {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .nmfcd-row-title {
    margin-left: 30px;
  }

  .nmfcd-row-posters {
    padding: 40px 30px 160px 30px;
  }

  .nmfcd-row-poster {
    flex: 0 0 calc(33.33% - 10px);
  }
}

@media (hover: none) and (pointer: coarse) {
  .nmfcd-row-btn {
    opacity: 1;
    color: #fff;
    touch-action: manipulation;
  }
}

@media (max-width: 600px) {
  .nmfcd-row-title {
    margin-left: 20px;
    font-size: 24px;
  }

  .nmfcd-row-posters {
    padding: 30px 20px 160px 20px;
    gap: 10px;
  }

  .nmfcd-row-poster {
    flex: 0 0 calc(80%);
    min-width: auto;
  }

  .nmfcd-row-btn {
    display: flex !important;
    top: 30px !important;
    bottom: 160px !important;
    width: 42px !important;
    min-width: 42px !important;
    opacity: 1;
    color: #fff !important;
    font-size: 2.25rem !important;
    background: rgba(11, 24, 41, 0.18) !important;
  }

  .nmfcd-row-btn.left {
    left: 0;
  }

  .nmfcd-row-btn.right {
    right: 0;
  }

  .nmfcd-row-btn:hover {
    transform: none;
  }
}
