/* The Netflix tab of Nội dung: its filter column, notice and cards. The
   values are the reference's own inline styles (Media chunk: the panel
   md:L40497–40705, the notice md:L45480–45631, the card md:L43780–43912 and
   md:L42216–42396), written as classes. */

/* Filter column ------------------------------------------------------------ */

.nf-search-helper {
  margin: 3px 14px 0;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 12px;
  line-height: 1.66;
}

.nf-part {
  margin-top: 8px;
}

.nf-genres-slot {
  margin-top: 12px;
}

.nf-genres {
  position: relative;
}

.nf-field-label {
  display: block;
  margin-bottom: 4px;
}

.nf-genres-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 6px 0 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 23%, transparent);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.nf-genres-button:hover {
  border-color: var(--hover-line);
}

.nf-genres-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-genres-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 320px;
  margin-top: 4px;
  padding: 8px 0;
  overflow-y: auto;
  border-radius: 4px;
  background: var(--surface-raised);
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.nf-genres-menu[hidden] {
  display: none;
}

.nf-genre-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
}

.nf-genre-option:hover {
  background: var(--hover);
}

.nf-genre-box {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-soft);
}

.nf-country {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.nf-country .combo {
  flex: 1 1 auto;
}

.nf-country-warning {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 8px;
  color: #f00;
}

.nf-country-warning[hidden] {
  display: none;
}

.nf-asr {
  padding: 12px 0;
}

.nf-asr .switch {
  margin: 0;
}

.nf-asr-label {
  margin-right: 8px;
  color: var(--text-label);
  font-size: 14px;
}

.nf-asr .switch-input:checked + .switch-track {
  background: color-mix(in srgb, var(--wovia-blue) 50%, transparent);
}

.nf-asr .switch-input:checked + .switch-track::after {
  background: var(--wovia-blue);
}

/* The notice over the list (#53) --------------------------------------------- */

.nf-notice {
  max-width: 1100px;
  margin: 16px 4px 24px;
  padding: 0 8px;
  line-height: 1.5;
}

.nf-notice[hidden] {
  display: none;
}

.nf-notice-link {
  margin-left: 6px;
  white-space: nowrap;
}

.nf-notice-more {
  padding: 16px 0;
}

.nf-notice.is-small {
  margin: 8px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 14px;
  line-height: 1.6;
}

.nf-notice.is-small .nf-notice-link {
  color: oklch(from #e50914 min(l, var(--max-lightness, 1)) c h);
  font-weight: 500;
  text-decoration: none;
}

.nf-notice.is-small .nf-notice-more {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}

/* TMDB's credit: one small line under the titles (S512), not a banner. */
.nf-tmdb-credit {
  margin: 8px 0 16px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.nf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  text-align: center;
}

/* Cards ---------------------------------------------------------------------- */

.ct-card-fallback.is-netflix {
  background: rgba(229, 9, 20, 0.12);
  color: #e50914;
}

.nf-card-year {
  opacity: 0.5;
  font-size: 0.85em;
}

.nf-card-imdb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.nf-card-imdb-badge {
  margin-left: 6px;
  padding: 3px;
  border-radius: 4px;
  background: var(--wovia-blue);
  color: var(--on-accent);
  font-size: 10px;
  vertical-align: top;
}

.nf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.nf-card-countries,
.nf-card-genre {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
}

.nf-card-countries {
  background: color-mix(in srgb, var(--wovia-blue) 40%, transparent);
  font-weight: 300;
}

.nf-card-genre {
  background: color-mix(in srgb, var(--ink) 6.3%, transparent);
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
}

.nf-card-genre.is-active {
  color: var(--accent-soft);
  font-weight: 500;
}

@media (max-width: 900px) {
  .nf-card-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nf-card-countries,
  .nf-card-genre {
    font-size: 12px;
  }
}
