@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/* New Social YouTube Playlist Viewer — WordPress-scoped styles */
  .nsypv {
    --nsypv-ink: #ffffff;
    --nsypv-muted: #d1d5db;
    --nsypv-dim: #9ca3af;
    --nsypv-panel: rgba(24, 24, 24, 0.96);
    --nsypv-panel-soft: rgba(255, 255, 255, 0.06);
    --nsypv-line: rgba(255, 255, 255, 0.12);
    --nsypv-accent: #ff0033;
    --nsypv-accent-deep: #cc0000;
    --nsypv-warm: #ff6b35;
    --nsypv-cool: #3ea6ff;
    --nsypv-cool-deep: #065fd4;
    --nsypv-success: #2ba640;
    --nsypv-danger: #ff4e45;
    --nsypv-radius: 16px;
    --nsypv-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    --nsypv-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --nsypv-pad: 14px;
    --nsypv-gap: 14px;

    box-sizing: border-box;
    font-family: var(--nsypv-font);
    color: var(--nsypv-ink);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    margin: 0 auto;
    padding: clamp(10px, 2.5vw, 24px) max(clamp(6px, 2vw, 14px), env(safe-area-inset-right, 0px)) max(clamp(14px, 3vw, 28px), env(safe-area-inset-bottom, 0px)) max(clamp(6px, 2vw, 14px), env(safe-area-inset-left, 0px));
    background:
      radial-gradient(ellipse 68% 46% at 6% 0%, rgba(255, 0, 51, 0.3), transparent 55%),
      radial-gradient(ellipse 52% 38% at 96% 4%, rgba(62, 166, 255, 0.16), transparent 50%),
      linear-gradient(155deg, #0a0a0a 0%, #1a0a10 42%, #121212 100%);
    border-radius: 0;
    position: relative;
    isolation: isolate;
    text-align: left;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    container-type: inline-size;
    container-name: nsypv;
  }

  .nsypv *,
  .nsypv *::before,
  .nsypv *::after {
    box-sizing: border-box;
  }

  .nsypv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  .nsypv :where(ul, ol) {
    list-style: none;
  }

  .nsypv img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
  }

  .nsypv a {
    color: var(--nsypv-cool);
    text-decoration: none;
  }

  .nsypv a:hover {
    text-decoration: underline;
  }

  .nsypv-shell {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--nsypv-gap);
    width: 100%;
    min-width: 0;
  }

  .nsypv-hero {
    background: transparent;
    padding: 36px 0 14px;
    text-align: center;
    backdrop-filter: blur(12px);
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .nsypv-hero__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 8px;
  }

  .nsypv-hero__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-warm));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 0, 51, 0.4);
  }

  .nsypv .nsypv-hero__brand i {
    font-size: 1.35rem !important;
    width: auto;
    color: #fff !important;
    display: inline-block !important;
    line-height: 1 !important;
  }

  .nsypv .nsypv-hero__title {
    font-size: clamp(1.25rem, 3.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--nsypv-ink);
  }

  .nsypv-hero__title-mark {
    background: linear-gradient(135deg, var(--nsypv-accent) 0%, var(--nsypv-warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
  }

  .nsypv-hero__title-mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--nsypv-accent), var(--nsypv-cool));
  }

  .nsypv .nsypv-hero__lead {
    max-width: 580px;
    margin: 0 auto 14px;
    color: var(--nsypv-muted);
    font-size: clamp(0.88rem, 2.4vw, 0.95rem);
    line-height: 1.55;
  }

  .nsypv-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 14px;
    width: 100%;
    max-width: 640px;
    justify-content: center;
  }

  .nsypv-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 44px;
    flex: 1 1 100%;
    border-radius: 10px;
    background: var(--nsypv-panel-soft);
    border: 1px solid var(--nsypv-line);
    color: var(--nsypv-muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .nsypv .nsypv-feature i {
    color: var(--nsypv-accent) !important;
    font-size: 0.95rem !important;
  }

  .nsypv-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 4px;
    padding: clamp(10px, 2vw, 14px);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--nsypv-line);
    border-radius: 12px;
    box-shadow: var(--nsypv-shadow);
  }

  .nsypv .nsypv-search__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nsypv-muted);
  }

  .nsypv-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .nsypv .nsypv-search__field {
    flex: 1 1 160px;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    padding: 0 14px !important;
    border: 1px solid var(--nsypv-line) !important;
    border-radius: 10px;
    background: #0f0f0f !important;
    color: #ffffff !important;
    font-family: var(--nsypv-font);
    font-size: 16px !important;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    width: 100%;
  }

  .nsypv .nsypv-search__field:focus {
    border-color: var(--nsypv-accent) !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.28);
  }

  .nsypv .nsypv-search__field::placeholder {
    color: var(--nsypv-dim);
  }

  .nsypv .nsypv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 calc(50% - 4px);
    height: 46px;
    min-height: 46px;
    min-width: 0;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 10px;
    font-family: var(--nsypv-font);
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    color: #fff !important;
  }

  .nsypv .nsypv-btn i,
  .nsypv i.fa-solid,
  .nsypv i.fa-brands {
    --fa-display: inline-block;
    display: inline-block !important;
    line-height: 1 !important;
    font-size: 0.92em;
    width: 1.15em;
    text-align: center;
  }

  .nsypv .nsypv-btn--paste {
    background: #272727 !important;
    border: 1px solid var(--nsypv-line) !important;
  }

  .nsypv .nsypv-btn--paste:hover {
    background: #3f3f3f !important;
  }

  .nsypv .nsypv-btn--view {
    background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep)) !important;
    box-shadow: 0 8px 22px rgba(255, 0, 51, 0.35);
    flex: 1 1 100%;
  }

  .nsypv .nsypv-btn--view:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .nsypv .nsypv-btn--view:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .nsypv .nsypv-btn--reset {
    background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep)) !important;
    display: none;
    flex: 1 1 100%;
  }

  .nsypv .nsypv-btn--reset.is-visible {
    display: inline-flex;
  }

  .nsypv .nsypv-alert {
    display: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 78, 69, 0.16);
    border: 1px solid rgba(255, 78, 69, 0.45);
    color: #ffb4af;
    font-weight: 600;
    font-size: 0.88rem;
  }

  .nsypv .nsypv-alert.is-visible {
    display: block;
  }

  .nsypv .nsypv-alert--info {
    background: rgba(62, 166, 255, 0.14);
    border-color: rgba(62, 166, 255, 0.4);
    color: #a5d8ff;
  }

  .nsypv-search__hint {
    color: var(--nsypv-dim);
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .nsypv-detect {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nsypv-muted);
  }

  .nsypv-detect.is-visible {
    display: inline-flex;
    flex-wrap: wrap;
  }

  .nsypv-detect__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 0, 51, 0.14);
    border: 1px solid rgba(255, 0, 51, 0.35);
    color: #ffb3c1;
    font-size: 0.75rem;
    word-break: break-all;
  }

  .nsypv-skeleton {
    display: none;
  }

  .nsypv-skeleton.is-visible {
    display: block;
  }

  .nsypv-skeleton__panel {
    background: var(--nsypv-panel);
    border: 1px solid var(--nsypv-line);
    border-radius: var(--nsypv-radius);
    padding: var(--nsypv-pad);
    box-shadow: var(--nsypv-shadow);
  }

  .nsypv-sk {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    background-size: 200% 100%;
    animation: nsypv-shimmer 1.2s ease-in-out infinite;
    border-radius: 12px;
  }

  @keyframes nsypv-shimmer {
    0% {
      background-position: 200% 0;
    }

    100% {
      background-position: -200% 0;
    }
  }

  .nsypv-skeleton__cover {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .nsypv-skeleton__mosaic {
    width: 148px;
    min-width: 120px;
    aspect-ratio: 1;
    border-radius: 14px;
  }

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

  .nsypv-skeleton__line {
    height: 14px;
    margin-top: 10px;
  }

  .nsypv-skeleton__line--lg {
    width: 78%;
  }

  .nsypv-skeleton__line--md {
    width: 48%;
  }

  .nsypv-skeleton__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .nsypv-skeleton__stat {
    height: 64px;
    border-radius: 12px;
  }

  .nsypv-skeleton__rows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .nsypv-skeleton__row {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .nsypv-result {
    width: 100%;
    min-width: 0;
  }

  .nsypv-content {
    display: none;
    animation: nsypv-rise 0.45s ease both;
  }

  .nsypv-content.is-visible,
  .nsypv-content.is-placeholder {
    display: block;
  }

  @keyframes nsypv-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nsypv-panel {
    background: var(--nsypv-panel);
    border: 1px solid var(--nsypv-line);
    border-radius: var(--nsypv-radius);
    box-shadow: var(--nsypv-shadow);
    padding: var(--nsypv-pad);
    width: 100%;
    min-width: 0;
  }

  .nsypv-panel+.nsypv-panel {
    margin-top: 14px;
  }

  .nsypv-empty {
    text-align: center;
    padding: 28px 14px;
    color: var(--nsypv-dim);
    font-size: 0.92rem;
  }

  .nsypv-empty i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--nsypv-accent);
  }

  .nsypv-playlist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .nsypv-cover {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--nsypv-line);
    margin: 0 auto;
  }

  .nsypv-cover__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
  }

  .nsypv-cover__grid.is-single {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .nsypv .nsypv-cover__img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
  }

  .nsypv-cover__badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 0, 51, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .nsypv-playlist__body {
    min-width: 0;
    text-align: center;
  }

  .nsypv .nsypv-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 0, 51, 0.14);
    border: 1px solid rgba(255, 0, 51, 0.35);
    color: #ffb3c1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .nsypv .nsypv-playlist__title {
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .nsypv .nsypv-playlist__id {
    color: var(--nsypv-dim);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
  }

  .nsypv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .nsypv .nsypv-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--nsypv-line);
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    flex: 1 1 calc(50% - 4px);
  }

  .nsypv .nsypv-chip:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nsypv .nsypv-chip--accent {
    background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep));
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(255, 0, 51, 0.28);
  }

  .nsypv .nsypv-chip--cool {
    background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep));
    border-color: transparent;
  }

  .nsypv-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .nsypv-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nsypv-line);
    min-width: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }

  .nsypv-stat__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 51, 0.14);
    color: #ff8fa3;
    flex: 0 0 auto;
  }

  .nsypv-stat:nth-child(2) .nsypv-stat__icon {
    background: rgba(62, 166, 255, 0.14);
    color: #7ec4ff;
  }

  .nsypv-stat:nth-child(3) .nsypv-stat__icon {
    background: rgba(255, 107, 53, 0.14);
    color: #ffb088;
  }

  .nsypv-stat:nth-child(4) .nsypv-stat__icon {
    background: rgba(43, 166, 64, 0.14);
    color: #7dde91;
  }

  .nsypv-stat__body {
    min-width: 0;
  }

  .nsypv .nsypv-stat__value {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
  }

  .nsypv .nsypv-stat__label {
    display: block;
    color: var(--nsypv-dim);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
  }

  .nsypv-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .nsypv-section__badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-warm));
    color: #fff;
  }

  .nsypv .nsypv-section__title {
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 800;
  }

  .nsypv .nsypv-section__count {
    margin-left: auto;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 0, 51, 0.16);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: #ffb3c1;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .nsypv-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .nsypv-vcard {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--nsypv-line);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    min-width: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }

  .nsypv .nsypv-vcard__index {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    min-width: 26px;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nsypv-vcard__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
  }

  .nsypv-vcard__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    cursor: pointer;
    border: 0;
    padding: 0;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    overflow: hidden;
  }

  .nsypv-vcard__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nsypv-vcard__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
  }

  .nsypv-vcard__play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 0, 51, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }

  .nsypv-vcard__play-btn i {
    margin-left: 2px;
  }

  .nsypv-vcard__badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .nsypv-vcard__badge--live {
    background: var(--nsypv-accent);
  }

  .nsypv-vcard__badge--upcoming {
    background: var(--nsypv-cool-deep);
  }

  .nsypv-vcard__badge--private {
    background: #3f3f3f;
  }

  .nsypv-vcard__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    flex: 1;
  }

  .nsypv .nsypv-vcard__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nsypv-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nsypv .nsypv-vcard__meta {
    color: var(--nsypv-dim);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .nsypv-vcard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .nsypv .nsypv-vcard__btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0 !important;
    border-radius: 8px;
    font-family: var(--nsypv-font);
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    color: #fff !important;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    text-decoration: none !important;
  }

  .nsypv .nsypv-vcard__btn--stream {
    background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep)) !important;
  }

  .nsypv .nsypv-vcard__btn--open {
    background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep)) !important;
  }

  .nsypv-more {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(255, 0, 51, 0.4) !important;
    background: rgba(255, 0, 51, 0.14) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 46px;
    font-family: var(--nsypv-font);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }

  .nsypv .nsypv-more:hover:not(:disabled) {
    background: rgba(255, 0, 51, 0.24) !important;
  }

  .nsypv .nsypv-more:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .nsypv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    place-items: center;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    overflow-y: auto;
  }

  .nsypv-modal.is-open {
    display: grid;
  }

  .nsypv-modal__dialog {
    width: min(1080px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: #121212;
    border: 1px solid var(--nsypv-line);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    min-width: 0;
    margin: auto;
  }

  .nsypv .nsypv-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nsypv-modal__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    background: #000;
    display: block;
  }

  .nsypv-modal__caption {
    margin-top: 12px;
    color: var(--nsypv-muted);
    font-size: 0.95rem;
    font-weight: 700;
    padding-right: 48px;
    word-break: break-word;
  }

  @supports (container-type: inline-size) {
    @container nsypv (min-width: 520px) {
      .nsypv-feature {
        flex: 1 1 calc(33.333% - 6px);
      }

      .nsypv .nsypv-search__field {
        flex: 1 1 220px;
      }

      .nsypv .nsypv-btn--paste {
        flex: 0 0 auto;
        min-width: 110px;
      }

      .nsypv .nsypv-btn--view,
      .nsypv .nsypv-btn--reset {
        flex: 0 0 auto;
        min-width: 150px;
      }

      .nsypv .nsypv-chip {
        flex: 0 0 auto;
      }
    }

    @container nsypv (min-width: 720px) {
      .nsypv-playlist {
        grid-template-columns: 180px minmax(0, 1fr);
      }

      .nsypv-cover {
        width: 180px;
        margin: 0;
      }

      .nsypv-playlist__body {
        text-align: left;
      }

      .nsypv-skeleton__cover {
        align-items: center;
      }

      .nsypv-videos,
      .nsypv-skeleton__rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

    @container nsypv (min-width: 1080px) {

      .nsypv-videos,
      .nsypv-skeleton__rows {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
      }
    }
  }

  @media (min-width: 640px) {

    .nsypv-videos,
    .nsypv-skeleton__rows {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1080px) {

    .nsypv-videos,
    .nsypv-skeleton__rows {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
  }

  @media (hover: hover) {

    .nsypv-stat:hover,
    .nsypv-vcard:hover {
      border-color: rgba(255, 0, 51, 0.4);
      transform: translateY(-2px);
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .nsypv *,
    .nsypv *::before,
    .nsypv *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .nsypv-sk {
      animation: none;
      background: #2a1518;
    }
  }

  .nsypv #xrespond-tools-turnstile-host {
    display: none;
  }

  .nsypv #xrespond-tools-turnstile-host.is-visible {
    display: block !important;
  }

  body>#xrespond-tools-turnstile-host.is-visible {
    display: block !important;
    position: fixed !important;
    z-index: 2147483000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Search controls: one row on large screens, wrap on narrow */
  .nsypv .nsypv-search,
  .nsypv .nsypv-search .nsypv-search__row,
  .nsypv .nsypv-search .nsypv-search__actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nsypv .nsypv-search .nsypv-search__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .nsypv .nsypv-search .nsypv-search__field,
  .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__field {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .nsypv .nsypv-search .nsypv-search__actions,
  .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .nsypv .nsypv-search .nsypv-search__row > .nsypv-btn,
  .nsypv .nsypv-search .nsypv-search__actions .nsypv-btn,
  .nsypv .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 110px !important;
  }

  .nsypv.nsypv--compact .nsypv-search .nsypv-search__row,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__row {
    flex-wrap: wrap !important;
  }

  .nsypv.nsypv--compact .nsypv-search .nsypv-search__field,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__field,
  .nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-search__field,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-search__field {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsypv.nsypv--compact .nsypv-search .nsypv-search__actions,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__actions,
  .nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-search__actions,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-search__actions {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-btn,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-btn,
  .nsypv.nsypv--compact .nsypv-search .nsypv-search__actions .nsypv-btn,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__actions .nsypv-btn,
  .nsypv.nsypv--compact .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn,
  .nsypv.nsypv--narrow .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  @media (max-width: 720px) {
    .nsypv .nsypv-search .nsypv-search__row {
      flex-wrap: wrap !important;
    }

    .nsypv .nsypv-search .nsypv-search__field,
    .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__field {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    .nsypv .nsypv-search .nsypv-search__actions,
    .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__actions {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    .nsypv .nsypv-search .nsypv-search__row > .nsypv-btn,
    .nsypv .nsypv-search .nsypv-search__actions .nsypv-btn,
    .nsypv .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
      flex: 1 1 calc(50% - 4px) !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }
  }

/* --- Codex CSS updates --- */
/* New Social YouTube Playlist Viewer — WordPress-scoped styles */
.nsypv {
  --nsypv-ink: #f8fafc;
  --nsypv-muted: #cbd5e1;
  --nsypv-dim: #94a3b8;
  --nsypv-panel: rgba(15, 23, 42, 0.82);
  --nsypv-panel-strong: rgba(15, 23, 42, 0.94);
  --nsypv-panel-soft: rgba(255, 255, 255, 0.08);
  --nsypv-line: rgba(148, 163, 184, 0.22);
  --nsypv-line-strong: rgba(255, 255, 255, 0.32);
  --nsypv-accent: #ff2f63;
  --nsypv-accent-deep: #c9184a;
  --nsypv-warm: #ff8a3d;
  --nsypv-cool: #38bdf8;
  --nsypv-cool-deep: #2563eb;
  --nsypv-success: #22c55e;
  --nsypv-danger: #fb4b5b;
  --nsypv-radius: 18px;
  --nsypv-shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
  --nsypv-shadow-soft: 0 12px 34px rgba(2, 6, 23, 0.28);
  --nsypv-focus: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 0 0 1px rgba(56, 189, 248, 0.55);
  --nsypv-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nsypv-pad: clamp(14px, 2vw, 22px);
  --nsypv-gap: clamp(14px, 2vw, 20px);

  box-sizing: border-box;
  font-family: var(--nsypv-font);
  color: var(--nsypv-ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 30px) max(clamp(10px, 2.5vw, 20px), env(safe-area-inset-right, 0px)) max(clamp(18px, 3.5vw, 36px), env(safe-area-inset-bottom, 0px)) max(clamp(10px, 2.5vw, 20px), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 47, 99, 0.34), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.24), transparent 32%),
    radial-gradient(circle at 56% 110%, rgba(255, 138, 61, 0.18), transparent 34%),
    linear-gradient(145deg, #08111f 0%, #141827 42%, #080b14 100%);
  border-radius: 0;
  position: relative;
  isolation: isolate;
  text-align: left;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  container-type: inline-size;
  container-name: nsypv;
}

.nsypv *,
.nsypv *::before,
.nsypv *::after {
  box-sizing: border-box;
}

.nsypv :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, label, span) {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.nsypv :where(ul, ol) {
  list-style: none;
}

.nsypv img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.nsypv a {
  color: var(--nsypv-cool);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.nsypv a:hover {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nsypv-shell {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--nsypv-gap);
  width: 100%;
  min-width: 0;
}

.nsypv-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  padding: clamp(22px, 4vw, 34px) clamp(14px, 3vw, 26px);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nsypv-line);
  box-shadow: var(--nsypv-shadow-soft);
  border-radius: var(--nsypv-radius);
}

.nsypv-hero__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.nsypv-hero__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-warm));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 47, 99, 0.32);
}

.nsypv .nsypv-hero__brand i {
  font-size: 1.25rem !important;
  width: auto;
  color: #fff !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.nsypv .nsypv-hero__title {
  font-size: clamp(1.38rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--nsypv-ink);
  text-transform: capitalize !important;
}

.nsypv-hero__title-mark {
  background: linear-gradient(135deg, #fff 0%, #ffd4df 38%, var(--nsypv-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.nsypv-hero__title-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nsypv-accent), var(--nsypv-cool));
  opacity: 0.9;
}

.nsypv .nsypv-hero__lead {
  max-width: 680px;
  margin: 0 auto 16px;
  color: var(--nsypv-muted);
  font-size: clamp(0.92rem, 1.8vw, 1rem);
  line-height: 1.6;
  font-weight: 500;
}

.nsypv-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 780px;
  justify-content: center;
}

.nsypv-feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 42px;
  flex: 1 1 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--nsypv-line);
  color: var(--nsypv-muted);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nsypv .nsypv-feature i {
  color: #fb7185 !important;
  font-size: 0.95rem !important;
}

.nsypv-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
  padding: clamp(14px, 2.2vw, 20px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
  border: 1px solid var(--nsypv-line);
  border-radius: var(--nsypv-radius);
  box-shadow: var(--nsypv-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nsypv .nsypv-search__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nsypv-muted);
}

.nsypv-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.nsypv .nsypv-search__field {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 56px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.62) !important;
  color: #ffffff !important;
  font-family: var(--nsypv-font);
  font-size: 16px !important;
  font-weight: 600;
  line-height: 52px !important;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 100%;
  resize: none;
  overflow-y: auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nsypv .nsypv-search__field:focus {
  border-color: var(--nsypv-cool) !important;
  background: rgba(2, 6, 23, 0.8) !important;
  box-shadow: var(--nsypv-focus);
}

.nsypv .nsypv-search__field::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.nsypv .nsypv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 calc(50% - 5px);
  height: 50px;
  min-height: 50px;
  min-width: 0;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 14px;
  font-family: var(--nsypv-font);
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
}

.nsypv .nsypv-btn:focus-visible,
.nsypv .nsypv-chip:focus-visible,
.nsypv .nsypv-vcard__btn:focus-visible,
.nsypv .nsypv-more:focus-visible,
.nsypv .nsypv-modal__close:focus-visible {
  outline: none;
  box-shadow: var(--nsypv-focus);
}

.nsypv .nsypv-btn:active,
.nsypv .nsypv-chip:active,
.nsypv .nsypv-vcard__btn:active,
.nsypv .nsypv-more:active {
  transform: translateY(0) scale(0.98);
}

.nsypv .nsypv-btn i,
.nsypv i.fa-solid,
.nsypv i.fa-brands,
.nsypv .fa-angles-down,
.nsypv .fa-list,
.nsypv .fa-paste,
.nsypv .fa-play,
.nsypv .fa-rotate-left,
.nsypv .fa-xmark,
.nsypv .fa-youtube {
  --fa-display: inline-block;
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 0.95em;
  width: 1.2em;
  min-width: 1.2em;
  text-align: center;
  color: currentColor !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
}

.nsypv .fa-angles-down::before { content: "\f103"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-list::before { content: "\f03a"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-paste::before { content: "\f0ea"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-play::before { content: "\f04b"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-rotate-left::before { content: "\f2ea"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-xmark::before { content: "\f00d"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif; font-weight: 900; }
.nsypv .fa-youtube::before { content: "\f167"; font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "Font Awesome 6 Free", Arial, sans-serif; font-weight: 400; }

.nsypv .nsypv-btn--paste {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.92), rgba(30, 41, 59, 0.96)) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

.nsypv .nsypv-btn--paste:hover {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.98), rgba(51, 65, 85, 0.98)) !important;
  transform: translateY(-1px);
}

.nsypv .nsypv-btn--view {
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep)) !important;
  box-shadow: 0 12px 28px rgba(255, 47, 99, 0.34);
  flex: 1 1 100%;
}

.nsypv .nsypv-btn--view:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(255, 47, 99, 0.42);
}

.nsypv .nsypv-btn--view:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.nsypv .nsypv-btn--reset {
  background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep)) !important;
  display: none;
  flex: 1 1 100%;
}

.nsypv .nsypv-btn--reset.is-visible {
  display: inline-flex;
}

.nsypv .nsypv-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(251, 75, 91, 0.14);
  border: 1px solid rgba(251, 75, 91, 0.42);
  color: #fecdd3;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nsypv .nsypv-alert.is-visible {
  display: block;
}

.nsypv .nsypv-alert--info {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.nsypv-search__hint {
  color: var(--nsypv-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.nsypv-detect {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--nsypv-muted);
}

.nsypv-detect.is-visible {
  display: inline-flex;
  flex-wrap: wrap;
}

.nsypv-detect__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 47, 99, 0.14);
  border: 1px solid rgba(255, 47, 99, 0.38);
  color: #fecdd3;
  font-size: 0.76rem;
  word-break: break-all;
}

.nsypv-skeleton {
  display: none;
}

.nsypv-skeleton.is-visible {
  display: block;
}

.nsypv-skeleton__panel {
  background: var(--nsypv-panel);
  border: 1px solid var(--nsypv-line);
  border-radius: var(--nsypv-radius);
  padding: var(--nsypv-pad);
  box-shadow: var(--nsypv-shadow);
}

.nsypv-sk {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: nsypv-shimmer 1.2s ease-in-out infinite;
  border-radius: 14px;
}

@keyframes nsypv-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nsypv-skeleton__cover {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.nsypv-skeleton__mosaic {
  width: 148px;
  min-width: 120px;
  aspect-ratio: 1;
  border-radius: 16px;
}

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

.nsypv-skeleton__line {
  height: 14px;
  margin-top: 10px;
}

.nsypv-skeleton__line--lg { width: 78%; }
.nsypv-skeleton__line--md { width: 48%; }

.nsypv-skeleton__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.nsypv-skeleton__stat {
  height: 64px;
  border-radius: 14px;
}

.nsypv-skeleton__rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.nsypv-skeleton__row {
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.nsypv-result {
  width: 100%;
  min-width: 0;
}

.nsypv-content {
  display: none;
  animation: nsypv-rise 0.45s ease both;
}

.nsypv-content.is-visible,
.nsypv-content.is-placeholder {
  display: block;
}

@keyframes nsypv-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nsypv-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.76));
  border: 1px solid var(--nsypv-line);
  border-radius: var(--nsypv-radius);
  box-shadow: var(--nsypv-shadow);
  padding: var(--nsypv-pad);
  width: 100%;
  min-width: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nsypv-panel + .nsypv-panel {
  margin-top: 16px;
}

.nsypv-empty {
  text-align: center;
  padding: 34px 16px;
  color: var(--nsypv-dim);
  font-size: 0.94rem;
}

.nsypv-empty i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--nsypv-accent);
}

.nsypv-playlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.nsypv-cover {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  border: 1px solid var(--nsypv-line);
  margin: 0 auto;
  box-shadow: var(--nsypv-shadow-soft);
}

.nsypv-cover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.nsypv-cover__grid.is-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.nsypv .nsypv-cover__img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

.nsypv-cover__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 47, 99, 0.94);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.34);
}

.nsypv-playlist__body {
  min-width: 0;
  text-align: center;
}

.nsypv .nsypv-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 47, 99, 0.14);
  border: 1px solid rgba(255, 47, 99, 0.36);
  color: #fecdd3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.nsypv .nsypv-playlist__title {
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.nsypv .nsypv-playlist__id {
  color: var(--nsypv-dim);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.nsypv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.nsypv .nsypv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--nsypv-line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
  flex: 1 1 calc(50% - 5px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nsypv .nsypv-chip:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--nsypv-line-strong);
  transform: translateY(-1px);
}

.nsypv .nsypv-chip--accent {
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255, 47, 99, 0.3);
}

.nsypv .nsypv-chip--cool {
  background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.22);
}

.nsypv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nsypv-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--nsypv-line);
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nsypv-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 47, 99, 0.16);
  color: #fb7185;
  flex: 0 0 auto;
}

.nsypv-stat:nth-child(2) .nsypv-stat__icon {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.nsypv-stat:nth-child(3) .nsypv-stat__icon {
  background: rgba(255, 138, 61, 0.16);
  color: #fdba74;
}

.nsypv-stat:nth-child(4) .nsypv-stat__icon {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.nsypv-stat__body {
  min-width: 0;
}

.nsypv .nsypv-stat__value {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
}

.nsypv .nsypv-stat__label {
  display: block;
  color: var(--nsypv-dim);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 2px;
}

.nsypv-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nsypv-section__badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-warm));
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 47, 99, 0.28);
}

.nsypv .nsypv-section__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.nsypv .nsypv-section__count {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 47, 99, 0.16);
  border: 1px solid rgba(255, 47, 99, 0.42);
  color: #fecdd3;
  font-size: 0.78rem;
  font-weight: 800;
}

.nsypv-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.nsypv-vcard {
  display: flex;
  flex-direction: column;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid var(--nsypv-line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.nsypv .nsypv-vcard__index {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 2;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nsypv-vcard__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.nsypv-vcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  overflow: hidden;
}

.nsypv-vcard__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.nsypv-vcard__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.28);
  transition: background 0.18s ease;
}

.nsypv-vcard__play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.5);
}

.nsypv-vcard__play-btn i {
  margin-left: 2px;
}

.nsypv-vcard__badge {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nsypv-vcard__badge--live {
  background: var(--nsypv-accent);
}

.nsypv-vcard__badge--upcoming {
  background: var(--nsypv-cool-deep);
}

.nsypv-vcard__badge--private {
  background: #475569;
}

.nsypv-vcard__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  flex: 1;
}

.nsypv .nsypv-vcard__title {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--nsypv-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsypv .nsypv-vcard__meta {
  color: var(--nsypv-dim);
  font-size: 0.79rem;
  font-weight: 700;
}

.nsypv-vcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nsypv .nsypv-vcard__btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0 !important;
  border-radius: 10px;
  font-family: var(--nsypv-font);
  font-size: 0.81rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  color: #fff !important;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  text-decoration: none !important;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.nsypv .nsypv-vcard__btn--stream {
  background: linear-gradient(135deg, var(--nsypv-cool), var(--nsypv-cool-deep)) !important;
}

.nsypv .nsypv-vcard__btn--open {
  background: linear-gradient(135deg, var(--nsypv-accent), var(--nsypv-accent-deep)) !important;
}

.nsypv .nsypv-vcard__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.nsypv-more {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 47, 99, 0.42) !important;
  background: linear-gradient(135deg, rgba(255, 47, 99, 0.2), rgba(56, 189, 248, 0.14)) !important;
  color: #fff !important;
  border-radius: 14px;
  padding: 0 16px;
  min-height: 50px;
  height: 50px;
  font-family: var(--nsypv-font);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nsypv .nsypv-more:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 47, 99, 0.3), rgba(56, 189, 248, 0.2)) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  transform: translateY(-1px);
}

.nsypv .nsypv-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nsypv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}

.nsypv-modal.is-open {
  display: grid;
}

.nsypv-modal__dialog {
  width: min(1080px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--nsypv-panel-strong);
  border: 1px solid var(--nsypv-line);
  border-radius: 18px;
  padding: 12px;
  position: relative;
  min-width: 0;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
}

.nsypv .nsypv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.72) !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nsypv .nsypv-modal__close:hover {
  background: rgba(255, 47, 99, 0.86) !important;
  transform: rotate(90deg);
}

.nsypv-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
  display: block;
}

.nsypv-modal__caption {
  margin-top: 12px;
  color: var(--nsypv-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding-right: 48px;
  word-break: break-word;
}

.nsypv .xrespond-ts-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nsypv-line);
  color: var(--nsypv-muted);
}

.nsypv .xrespond-ts-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nsypv-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.nsypv .xrespond-ts-error {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 75, 91, 0.14);
  border: 1px solid rgba(251, 75, 91, 0.42);
  color: #fecdd3;
  font-size: 0.86rem;
  font-weight: 700;
}

@supports (container-type: inline-size) {
  @container nsypv (min-width: 520px) {
    .nsypv-feature {
      flex: 1 1 calc(33.333% - 7px);
    }

    .nsypv .nsypv-search__field {
      flex: 1 1 240px;
    }

    .nsypv .nsypv-btn--paste {
      flex: 0 0 auto;
      min-width: 118px;
    }

    .nsypv .nsypv-btn--view,
    .nsypv .nsypv-btn--reset {
      flex: 0 0 auto;
      min-width: 152px;
    }

    .nsypv .nsypv-chip {
      flex: 0 0 auto;
    }
  }

  @container nsypv (min-width: 720px) {
    .nsypv-playlist {
      grid-template-columns: 190px minmax(0, 1fr);
    }

    .nsypv-cover {
      width: 190px;
      margin: 0;
    }

    .nsypv-playlist__body {
      text-align: left;
    }

    .nsypv-skeleton__cover {
      align-items: center;
    }

    .nsypv-videos,
    .nsypv-skeleton__rows {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

  @container nsypv (min-width: 1080px) {
    .nsypv-videos,
    .nsypv-skeleton__rows {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
  }
}

@media (min-width: 640px) {
  .nsypv-videos,
  .nsypv-skeleton__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .nsypv-videos,
  .nsypv-skeleton__rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (hover: hover) {
  .nsypv-stat:hover,
  .nsypv-vcard:hover {
    border-color: rgba(56, 189, 248, 0.42);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.32);
  }

  .nsypv-vcard:hover .nsypv-vcard__thumb {
    transform: scale(1.035);
    filter: saturate(1.08);
  }

  .nsypv-vcard:hover .nsypv-vcard__play {
    background: rgba(2, 6, 23, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nsypv *,
  .nsypv *::before,
  .nsypv *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nsypv-sk {
    animation: none;
    background: rgba(255, 255, 255, 0.1);
  }
}

.nsypv #xrespond-tools-turnstile-host {
  display: none;
}

.nsypv #xrespond-tools-turnstile-host.is-visible {
  display: block !important;
}

body > #xrespond-tools-turnstile-host.is-visible {
  display: block !important;
  position: fixed !important;
  z-index: 2147483000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Search controls: one row on large screens, stack cleanly on small and medium screens */
.nsypv .nsypv-search,
.nsypv .nsypv-search .nsypv-search__row,
.nsypv .nsypv-search .nsypv-search__actions {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.nsypv .nsypv-search .nsypv-search__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.nsypv .nsypv-search .nsypv-search__field,
.nsypv .nsypv-search .nsypv-search__row > .nsypv-search__field {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 56px !important;
}

.nsypv .nsypv-search .nsypv-search__actions,
.nsypv .nsypv-search .nsypv-search__row > .nsypv-search__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

.nsypv .nsypv-search .nsypv-search__row > .nsypv-btn,
.nsypv .nsypv-search .nsypv-search__actions .nsypv-btn,
.nsypv .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 118px !important;
  height: 50px !important;
  min-height: 50px !important;
}

.nsypv.nsypv--compact .nsypv-search .nsypv-search__row,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__row {
  flex-wrap: wrap !important;
}

.nsypv.nsypv--compact .nsypv-search .nsypv-search__field,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__field,
.nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-search__field,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-search__field {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.nsypv.nsypv--compact .nsypv-search .nsypv-search__actions,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__actions,
.nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-search__actions,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-search__actions {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.nsypv.nsypv--compact .nsypv-search .nsypv-search__row > .nsypv-btn,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__row > .nsypv-btn,
.nsypv.nsypv--compact .nsypv-search .nsypv-search__actions .nsypv-btn,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__actions .nsypv-btn,
.nsypv.nsypv--compact .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn,
.nsypv.nsypv--narrow .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
  flex: 1 1 calc(50% - 5px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .nsypv {
    padding: 12px max(10px, env(safe-area-inset-right, 0px)) 20px max(10px, env(safe-area-inset-left, 0px));
  }

  .nsypv-hero {
    padding: 22px 14px;
  }

  .nsypv .nsypv-hero__title {
    font-size: clamp(1.28rem, 5vw, 1.62rem);
  }

  .nsypv .nsypv-hero__lead {
    font-size: 0.92rem;
  }

  .nsypv .nsypv-search .nsypv-search__row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .nsypv .nsypv-search .nsypv-search__field,
  .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__field {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 56px !important;
    line-height: 52px !important;
  }

  .nsypv .nsypv-search .nsypv-search__actions,
  .nsypv .nsypv-search .nsypv-search__row > .nsypv-search__actions {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .nsypv .nsypv-search .nsypv-search__row > .nsypv-btn,
  .nsypv .nsypv-search .nsypv-search__actions .nsypv-btn,
  .nsypv .nsypv-search .nsypv-search__row .nsypv-search__actions .nsypv-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
  }

  .nsypv-stats {
    grid-template-columns: 1fr;
  }

  .nsypv-skeleton__cover {
    flex-direction: column;
  }

  .nsypv-skeleton__mosaic {
    width: 100%;
    max-width: 220px;
    min-width: 0;
  }

  .nsypv-section__count {
    margin-left: 0;
  }

  .nsypv-actions,
  .nsypv-vcard__actions {
    flex-direction: column;
  }

  .nsypv .nsypv-chip,
  .nsypv .nsypv-vcard__btn {
    width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .nsypv {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  .nsypv-hero__heading {
    gap: 10px;
  }

  .nsypv-hero__brand {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 13px;
  }

  .nsypv .nsypv-hero__title {
    font-size: 1.28rem;
  }

  .nsypv-search,
  .nsypv-panel {
    border-radius: 16px;
  }

  .nsypv .nsypv-btn,
  .nsypv .nsypv-search__field,
  .nsypv-more {
    border-radius: 13px;
  }

  .nsypv-modal__dialog {
    border-radius: 16px;
    padding: 10px;
  }

  .nsypv-modal__caption {
    padding-right: 0;
    font-size: 0.9rem;
  }
}