/* NT Web Stories & Reels — reels player, reels grid / bento / carousel and popup */

/* ==========================================================================
   Reels player
   ========================================================================== */
/* Doubled class: beats block-theme layout rules that set max-width on content children. */
.ntsr-player-wrap.ntsr-player-wrap { position: relative; width: 100%; max-width: var(--ntsr-player-w, 440px); margin-left: auto; margin-right: auto; }
.ntsr-player {
    --ntsr-glass: rgba(18, 18, 30, .38);
    --ntsr-glass-line: rgba(255, 255, 255, .16);
    --ntsr-tag: var(--ntsr-b);
    --ntsr-tag: color-mix(in srgb, var(--ntsr-a) 52%, #fff);
    position: relative; width: 100%; height: min(calc(100vh - 40px), 820px); height: min(calc(100svh - 40px), 820px);
    overflow: hidden; border-radius: 22px; background: #000; color: #fff; isolation: isolate; font-family: inherit;
    box-shadow: 0 30px 80px -10px rgba(20, 10, 40, .45), 0 6px 20px rgba(20, 10, 40, .16); outline: none;
    -webkit-font-smoothing: antialiased; text-align: left; line-height: 1.4;
}
.ntsr-player:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ntsr-a), 0 30px 80px -10px rgba(20, 10, 40, .45); }
.ntsr-player__feed { width: 100%; height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.ntsr-player__feed::-webkit-scrollbar { display: none; }

.ntsr-reel { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2a2350, #07070d 70%); scroll-snap-align: start; scroll-snap-stop: always; }
.ntsr-reel.is-hidden { display: none; }
.ntsr-reel__media, .ntsr-reel__embed { position: absolute; inset: 0; }
.ntsr-player .ntsr-reel__media video, .ntsr-reel__frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; object-fit: cover; background: transparent; }
.ntsr-player .ntsr-reel__poster { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; pointer-events: none; transition: opacity .5s ease; }
.ntsr-reel.is-embed-live .ntsr-reel__poster { opacity: 0; }

.ntsr-reel__shade-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 55%, transparent); pointer-events: none; }
.ntsr-reel__shade { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, .18) 62%, transparent 100%); pointer-events: none; }
.ntsr-reel.is-embed .ntsr-reel__shade { height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); }
.ntsr-reel.is-embed .ntsr-reel__shade-top { height: 0; }

/* top bar */
.ntsr-reel__top { position: absolute; z-index: 5; top: 14px; left: 12px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); pointer-events: none; }
.ntsr-reel__brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding: 4px 0 4px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntsr-reel__brand-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--ntsr-a), var(--ntsr-b)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.ntsr-reel__top-right { display: flex; align-items: center; gap: 6px; flex: none; }
.ntsr-reel__badge, .ntsr-reel__count { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 20px; background: var(--ntsr-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--ntsr-glass-line); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: none; }
.ntsr-reel__badge .ntsr-i { width: 13px; height: 13px; }
.ntsr-reel.is-embed .ntsr-reel__top { display: none; }

/* progress (seekable) */
.ntsr-reel__progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 16px; display: flex; align-items: flex-end; cursor: pointer; }
.ntsr-reel__progress::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); transition: height .2s var(--ntsr-ease); }
.ntsr-reel__progress i { position: relative; display: block; width: 100%; height: 3px; background: linear-gradient(90deg, var(--ntsr-a), var(--ntsr-b)); transform: scaleX(0); transform-origin: left center; transition: height .2s var(--ntsr-ease); box-shadow: 0 0 10px color-mix(in srgb, var(--ntsr-b) 60%, transparent); }
.ntsr-reel__progress:hover::before, .ntsr-reel__progress:hover i { height: 6px; }
.ntsr-reel.is-embed .ntsr-reel__progress { display: none; }
.ntsr-reel.is-loading .ntsr-reel__progress::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: ntsrIndeterminate 1.1s ease-in-out infinite; }
@keyframes ntsrIndeterminate { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* info block */
.ntsr-reel__info { position: absolute; z-index: 5; left: 16px; right: 80px; bottom: 26px; }
.ntsr-reel__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ntsr-reel__avatar-ring { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: var(--ntsr-ring); }
.ntsr-player .ntsr-avatar, .ntsr-rgrid-wrap .ntsr-avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; max-width: none; margin: 0; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--ntsr-a), var(--ntsr-b)); border: 2px solid rgba(255, 255, 255, .7); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.ntsr-player .ntsr-reel__avatar-ring .ntsr-avatar { width: 34px; height: 34px; border: 2px solid #111; }
.ntsr-reel__meta-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ntsr-reel__meta-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.ntsr-reel__meta-text small { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.ntsr-reel__views { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ntsr-reel__views[hidden] { display: none; }
.ntsr-reel__meta-text .ntsr-reel__views::before { content: ""; width: 3px; height: 3px; margin-right: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.ntsr-reel__views .ntsr-i { width: 14px; height: 14px; opacity: .9; }
.ntsr-reel__statline { margin-bottom: 8px; font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

.ntsr-player .ntsr-reel__title { margin: 0 0 5px; padding: 0; border: 0; color: #fff; font-family: inherit; font-size: 16px; font-weight: 800; line-height: 1.32; letter-spacing: -.005em; text-transform: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntsr-player .ntsr-reel__title::before, .ntsr-player .ntsr-reel__title::after { content: none; }
.ntsr-reel__caption { font-size: 14.5px; line-height: 1.5; font-weight: 500; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); overscroll-behavior: contain; }
.ntsr-reel__caption-text { white-space: pre-line; overflow-wrap: anywhere; }
.ntsr-player .ntsr-tag { color: var(--ntsr-tag); font-weight: 700; }
.ntsr-reel__caption.is-open { max-height: 38vh; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); padding-bottom: 14px; }
.ntsr-player .ntsr-reel__more { display: inline-block; margin-top: 4px; padding: 2px 0; color: #fff; font-size: 12.5px; font-weight: 700; opacity: .8; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); line-height: 1.3; transition: opacity .2s; }
.ntsr-player .ntsr-reel__more:hover { opacity: 1; }
.ntsr-player .ntsr-reel__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }
.ntsr-player .ntsr-reel__cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px 10px 18px; border-radius: 40px;
    background: linear-gradient(135deg, var(--ntsr-a), color-mix(in srgb, var(--ntsr-a) 55%, var(--ntsr-b)));
    box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--ntsr-a) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.2; text-decoration: none; text-shadow: none;
    transition: transform .3s var(--ntsr-spring), box-shadow .3s var(--ntsr-ease), filter .2s;
}
.ntsr-player .ntsr-reel__cta:hover, .ntsr-player .ntsr-reel__cta:focus-visible { color: #fff; text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.ntsr-player .ntsr-reel__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ntsr-reel__cta .ntsr-i { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: transform .3s var(--ntsr-spring); }
.ntsr-reel__cta:hover .ntsr-i { transform: translateX(3px); }
.ntsr-reel.is-embed .ntsr-reel__info { bottom: 64px; }

/* action rail */
.ntsr-reel__rail { position: absolute; z-index: 6; right: 12px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ntsr-player .ntsr-rail-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; }
.ntsr-rail-btn__icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: background .25s, transform .3s var(--ntsr-spring), border-color .25s;
}
.ntsr-rail-btn__icon .ntsr-i { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.ntsr-rail-btn:hover .ntsr-rail-btn__icon { background: rgba(255, 255, 255, .3); transform: translateY(-2px) scale(1.04); }
.ntsr-rail-btn:active .ntsr-rail-btn__icon { transform: scale(.86); transition-duration: .1s; }
.ntsr-player .ntsr-rail-btn:focus-visible { outline: none; }
.ntsr-rail-btn:focus-visible .ntsr-rail-btn__icon { outline: 2px solid #fff; outline-offset: 3px; }
.ntsr-rail-btn__label { min-height: 14px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.ntsr-reel__like.is-liked .ntsr-rail-btn__icon { background: linear-gradient(140deg, #ff6b8b, #ff2e55); border-color: rgba(255, 255, 255, .35); box-shadow: 0 10px 24px -6px rgba(255, 46, 85, .7), inset 0 1px 0 rgba(255, 255, 255, .3); animation: ntsrPop .5s var(--ntsr-spring); }
.ntsr-reel__like.is-liked .ntsr-i { fill: #fff; stroke: #fff; }
@keyframes ntsrPop { 40% { transform: scale(1.3); } }
.ntsr-when-sound { display: none; }
.ntsr-player.is-sound .ntsr-when-sound { display: block; }
.ntsr-player.is-sound .ntsr-when-muted { display: none; }
.ntsr-player:not(.is-sound) .ntsr-reel__mute .ntsr-rail-btn__icon { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5), 0 8px 20px -6px rgba(0, 0, 0, .45); }
.ntsr-reel.is-embed .ntsr-reel__rail { bottom: 90px; }

/* buffering shimmer */
.ntsr-reel__loader { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; overflow: hidden; }
.ntsr-reel__loader::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .09) 47%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .09) 53%, transparent 65%); animation: ntsrShimmer 1.5s ease-in-out infinite; }
.ntsr-reel__loader span { position: relative; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, var(--ntsr-b), var(--ntsr-a), #fff); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: ntsrSpin .9s linear infinite; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .4)); }
.ntsr-reel.is-loading .ntsr-reel__loader { opacity: 1; visibility: visible; transition-delay: .15s, 0s; }
@keyframes ntsrShimmer { from { transform: translateX(-60%); } to { transform: translateX(60%); } }

/* tap feedback / paused state */
.ntsr-reel__tap { position: absolute; z-index: 6; top: 50%; left: 50%; display: grid; place-items: center; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: rgba(10, 10, 20, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .2s, transform .35s var(--ntsr-spring); }
.ntsr-reel__tap .ntsr-i { width: 32px; height: 32px; margin-left: 4px; }
.ntsr-reel.is-paused .ntsr-reel__tap, .ntsr-reel__tap.is-shown { opacity: 1; transform: none; }

/* double-tap heart burst */
.ntsr-reel__burst { position: absolute; z-index: 7; top: 50%; left: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; color: #ff3d5a; opacity: 0; pointer-events: none; }
.ntsr-reel__burst .ntsr-i { position: relative; z-index: 1; width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 10px 26px rgba(255, 61, 90, .55)); }
.ntsr-reel__burst i { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: linear-gradient(135deg, #ff8fab, #ff3d5a); opacity: 0; }
.ntsr-reel__burst.is-shown { animation: ntsrBurst .95s var(--ntsr-ease) forwards; }
.ntsr-reel__burst.is-shown i { animation: ntsrSpark .7s var(--ntsr-ease) .08s forwards; }
.ntsr-reel__burst i:nth-of-type(1) { --x: 0px; --y: -86px; }
.ntsr-reel__burst i:nth-of-type(2) { --x: 74px; --y: -44px; background: linear-gradient(135deg, var(--ntsr-b), var(--ntsr-a)); }
.ntsr-reel__burst i:nth-of-type(3) { --x: 74px; --y: 44px; }
.ntsr-reel__burst i:nth-of-type(4) { --x: 0px; --y: 86px; background: linear-gradient(135deg, #ffd36b, #ff7a45); }
.ntsr-reel__burst i:nth-of-type(5) { --x: -74px; --y: 44px; }
.ntsr-reel__burst i:nth-of-type(6) { --x: -74px; --y: -44px; background: linear-gradient(135deg, var(--ntsr-b), var(--ntsr-a)); }
@keyframes ntsrBurst { 0% { opacity: 0; transform: scale(.3) rotate(-14deg); } 22% { opacity: 1; transform: scale(1.18) rotate(0); } 40% { transform: scale(.94); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08) translateY(-46px); } }
@keyframes ntsrSpark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2); } }

/* entrance of the active reel's text + buttons */
.ntsr-reel.is-active .ntsr-reel__info > * { animation: ntsrRise .55s var(--ntsr-ease) both; }
.ntsr-reel.is-active .ntsr-reel__info > :nth-child(2) { animation-delay: .06s; }
.ntsr-reel.is-active .ntsr-reel__info > :nth-child(3) { animation-delay: .12s; }
.ntsr-reel.is-active .ntsr-reel__rail > * { animation: ntsrRailIn .5s var(--ntsr-spring) both; }
.ntsr-reel.is-active .ntsr-reel__rail > :nth-child(2) { animation-delay: .05s; }
.ntsr-reel.is-active .ntsr-reel__rail > :nth-child(3) { animation-delay: .1s; }
@keyframes ntsrRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ntsrRailIn { from { opacity: 0; transform: translateX(14px) scale(.85); } }

/* first-time hint */
.ntsr-player__hint { position: absolute; z-index: 8; left: 50%; top: 56%; display: none; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 30px; background: rgba(12, 12, 22, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.ntsr-player__hint.is-shown { display: inline-flex; animation: ntsrFadeIn .4s ease both; }
.ntsr-player__hint-icon { animation: ntsrNudge 1.2s ease-in-out infinite; }
.ntsr-player__hint .ntsr-i { width: 18px; height: 18px; }
@keyframes ntsrNudge { 50% { transform: translateY(-5px); } }

/* "Up next" peek */
.ntsr-player .ntsr-player__next {
    position: absolute; z-index: 7; right: 10px; bottom: 270px; display: flex; align-items: center; gap: 9px; max-width: min(220px, 62%);
    padding: 5px 8px 5px 5px; border-radius: 14px; overflow: hidden; color: #fff; text-align: left;
    background: rgba(14, 14, 24, .5); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateX(18px); pointer-events: none;
    transition: opacity .3s var(--ntsr-ease), transform .45s var(--ntsr-spring), background .2s, bottom .3s var(--ntsr-ease);
}
.ntsr-player .ntsr-player__next.is-shown { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s, .35s, 0s, 0s; }
.ntsr-player__next[hidden] { display: none !important; }
.ntsr-player .ntsr-player__next:hover { background: rgba(14, 14, 24, .72); }
.ntsr-player .ntsr-player__next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ntsr-player__next-thumb { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 46px; overflow: hidden; border-radius: 9px; background: linear-gradient(160deg, var(--ntsr-a), #14162e); }
.ntsr-player .ntsr-player__next-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.ntsr-player__next-thumb img[hidden] { display: none; }
.ntsr-player__next-thumb .ntsr-i { position: relative; width: 14px; height: 14px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.ntsr-player__next-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.ntsr-player__next-text small { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ntsr-tag); }
.ntsr-player__next-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; font-weight: 700; }
.ntsr-player__next-go { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .3s var(--ntsr-spring); }
.ntsr-player__next-go .ntsr-i { width: 14px; height: 14px; }
.ntsr-player__next:hover .ntsr-player__next-go { transform: translateY(2px); }
.ntsr-player__next-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; display: none; background: rgba(255, 255, 255, .12); }
.ntsr-player__next.has-bar .ntsr-player__next-bar { display: block; }
.ntsr-player__next-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ntsr-a), var(--ntsr-b)); transform: scaleX(0); transform-origin: left center; }
.ntsr-player.is-caption-open .ntsr-player__next { opacity: 0; transform: translateX(18px); pointer-events: none; transition-delay: 0s; }
@media (max-height: 560px) { .ntsr-player__next { display: none !important; } }

/* desktop nav column (outside the player) */
.ntsr-player__nav { position: absolute; z-index: 8; top: 50%; right: -68px; display: none; flex-direction: column; align-items: center; gap: 10px; transform: translateY(-50%); }
.ntsr-player .ntsr-player__nav-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #1c1f33; box-shadow: 0 10px 24px -6px rgba(20, 16, 60, .3), 0 0 0 1px rgba(20, 16, 60, .05); transition: transform .3s var(--ntsr-spring), opacity .2s, color .2s; }
.ntsr-player .ntsr-player__nav-btn:hover { transform: scale(1.1); color: var(--ntsr-a); }
.ntsr-player .ntsr-player__nav-btn:focus-visible, .ntsr-player .ntsr-player__keys-btn:focus-visible { outline: 3px solid var(--ntsr-a); outline-offset: 3px; }
.ntsr-player .ntsr-player__nav-btn:disabled { opacity: .35; pointer-events: none; }
.ntsr-player__nav-btn .ntsr-i { width: 22px; height: 22px; }
.ntsr-player__keys { position: relative; margin-top: 8px; }
.ntsr-player .ntsr-player__keys-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #8a8fa6; background: rgba(120, 125, 150, .12); transition: color .2s, background .2s; }
.ntsr-player .ntsr-player__keys-btn:hover, .ntsr-player__keys.is-open .ntsr-player__keys-btn { color: var(--ntsr-a); background: color-mix(in srgb, var(--ntsr-a) 14%, transparent); }
.ntsr-modal .ntsr-player .ntsr-player__keys-btn { color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.ntsr-modal .ntsr-player .ntsr-player__keys-btn:hover, .ntsr-modal .ntsr-player__keys.is-open .ntsr-player__keys-btn { color: #fff; background: rgba(255, 255, 255, .2); }
.ntsr-player__keys-btn .ntsr-i { width: 19px; height: 19px; }
.ntsr-player__keys-pop {
    position: absolute; right: -6px; bottom: calc(100% + 12px); width: 240px; padding: 14px 16px; border-radius: 16px; display: none;
    background: rgba(20, 20, 34, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px -12px rgba(10, 8, 30, .55); font-size: 12.5px; line-height: 1.3;
}
.ntsr-player__keys-pop::after { content: ""; position: absolute; right: 18px; bottom: -6px; width: 12px; height: 12px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.ntsr-player__keys:hover .ntsr-player__keys-pop, .ntsr-player__keys.is-open .ntsr-player__keys-pop, .ntsr-player__keys-btn:focus-visible + .ntsr-player__keys-pop { display: block; animation: ntsrPopIn .25s var(--ntsr-ease) both; }
@keyframes ntsrPopIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.ntsr-player__keys-title { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ntsr-player__keys-pop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ntsr-player__keys-pop li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.ntsr-kbds { display: inline-flex; gap: 4px; min-width: 62px; }
.ntsr-player kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .18); border-bottom-width: 2px; color: #fff; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: none; }

@media (min-width: 900px) and (hover: hover) {
    .ntsr-player { overflow: visible; }
    .ntsr-player__feed { border-radius: inherit; }
    .ntsr-player__nav { display: flex; }
}
@media (max-width: 600px) {
    .ntsr-player-wrap.ntsr-player-wrap { max-width: none; }
    .ntsr-player { height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
    .ntsr-reel__info { left: 14px; right: 74px; bottom: 24px; }
    .ntsr-reel__rail { right: 10px; }
    .ntsr-rail-btn__icon { width: 46px; height: 46px; }
}
.ntsr-player-wrap.ntsr-player-wrap--full { max-width: min(var(--ntsr-player-w, 440px), calc((100vh - 32px) * 9 / 16)); }
.ntsr-player--standalone { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media (max-width: 600px) {
    .ntsr-player-wrap.ntsr-player-wrap--full { max-width: none; width: 100%; }
    .ntsr-player--standalone { height: 100dvh; }
    .ntsr-player--standalone .ntsr-reel__top { left: 66px; top: 20px; }
}

/* ==========================================================================
   Reels grid / bento / carousel
   ========================================================================== */
.ntsr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ntsr-rgrid-wrap .ntsr-chip { height: 36px; padding: 0 16px; border-radius: 30px; border: 1px solid rgba(120, 125, 150, .26); background: rgba(120, 125, 150, .06); font-size: 13px; font-weight: 650; transition: color .2s, border-color .2s, background .2s, box-shadow .3s var(--ntsr-ease), transform .3s var(--ntsr-spring); }
.ntsr-rgrid-wrap .ntsr-chip:hover { border-color: var(--ntsr-a); color: var(--ntsr-a); transform: translateY(-1px); }
.ntsr-rgrid-wrap .ntsr-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--ntsr-a) 45%, transparent); outline-offset: 2px; }
.ntsr-rgrid-wrap .ntsr-chip.is-active { border-color: transparent; background: linear-gradient(135deg, var(--ntsr-a), var(--ntsr-b)); color: #fff; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--ntsr-a) 65%, transparent); }

.ntsr-rgrid { display: grid; grid-template-columns: repeat(var(--ntsr-cols, 4), minmax(0, 1fr)); gap: 16px; }
.ntsr-rgrid-wrap--carousel .ntsr-rgrid { display: flex; gap: 14px; padding: 10px 6px 30px; margin: -10px -6px -20px; scroll-padding: 0 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.ntsr-rgrid-wrap--carousel .ntsr-rgrid::-webkit-scrollbar { display: none; }
.ntsr-rgrid-wrap--carousel .ntsr-rcard { flex: 0 0 calc((100% - (var(--ntsr-cols, 4) - 1) * 14px) / var(--ntsr-cols, 4)); min-width: 150px; scroll-snap-align: start; }
.ntsr-rgrid-wrap--carousel:not(.is-end) .ntsr-rgrid { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.ntsr-rgrid-wrap--carousel:not(.is-start):not(.is-end) .ntsr-rgrid { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.ntsr-rgrid-wrap--carousel.is-end:not(.is-start) .ntsr-rgrid { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }

/* card */
.ntsr-rgrid-wrap .ntsr-rcard {
    --r: var(--ntsr-card-r, 18px);
    position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate; container-type: inline-size;
    border-radius: var(--r); background: linear-gradient(160deg, #2b2f55, #0e0f1c); color: #fff; text-align: left;
    box-shadow: 0 12px 28px -12px rgba(20, 16, 60, .35), 0 2px 6px rgba(20, 16, 60, .08);
    transition: transform .45s var(--ntsr-ease), box-shadow .45s var(--ntsr-ease);
    animation: ntsrCardIn .6s var(--ntsr-ease) both; animation-delay: calc(min(var(--i, 0), 10) * 55ms);
}
.ntsr-rgrid-wrap .ntsr-rcard::after { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; transition: box-shadow .3s; }
.ntsr-rgrid-wrap .ntsr-rcard:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -16px rgba(20, 16, 60, .5), 0 0 0 1px rgba(20, 16, 60, .04); }
.ntsr-rgrid-wrap .ntsr-rcard:hover::after { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ntsr-a) 70%, #fff); }
.ntsr-rgrid-wrap .ntsr-rcard:focus-visible { outline: 3px solid var(--ntsr-a); outline-offset: 3px; }
.ntsr-rgrid-wrap .ntsr-rcard.is-zoom-src { visibility: hidden; }
.ntsr-rcard.is-hidden, .ntsr-rcard.is-paged { display: none; }
.ntsr-more-wrap[hidden] { display: none; }
.ntsr-rgrid-wrap.is-pending .ntsr-rcard { animation-play-state: paused; }
@keyframes ntsrCardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.ntsr-rcard__media img, .ntsr-rcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--ntsr-ease), opacity .4s; }
.ntsr-rcard:hover .ntsr-rcard__media img { transform: scale(1.07); }
.ntsr-rcard__media .ntsr-rcard__live { z-index: 1; opacity: 0; }
.ntsr-rcard__media .ntsr-rcard__live.is-playing { opacity: 1; }
.ntsr-rcard__shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .32) 0%, transparent 24%, transparent 46%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .9) 100%); transition: opacity .3s; }

.ntsr-rcard__top { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ntsr-rcard__badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 10, 20, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); }
.ntsr-rcard__badge .ntsr-i { width: 15px; height: 15px; }
.ntsr-rcard__badge--youtube { background: rgba(255, 0, 0, .78); border-color: transparent; }
.ntsr-rcard__badge--facebook { background: rgba(24, 119, 242, .82); border-color: transparent; }
.ntsr-rcard__views { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 20px; background: rgba(10, 10, 20, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ntsr-rcard__views[hidden] { display: none; }
.ntsr-rcard__views .ntsr-i { width: 11px; height: 11px; }

.ntsr-rcard__play {
    position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
    background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1.5px solid rgba(255, 255, 255, .5);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); transition: transform .4s var(--ntsr-spring), opacity .3s, background .3s, border-color .3s;
}
.ntsr-rcard__play .ntsr-i { width: 22px; height: 22px; margin-left: 3px; }
.ntsr-rcard:hover .ntsr-rcard__play { transform: scale(1.12); background: linear-gradient(135deg, var(--ntsr-a), var(--ntsr-b)); border-color: transparent; }
.ntsr-rcard.is-previewing .ntsr-rcard__play { opacity: 0; transform: scale(.7); }
.ntsr-rcard__body { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.ntsr-rcard__caption { font-size: 13.5px; font-weight: 650; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ntsr-rcard .ntsr-tag { color: color-mix(in srgb, var(--ntsr-a) 45%, #fff); }
.ntsr-rcard__meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .88); white-space: nowrap; min-width: 0; }
.ntsr-rcard__time { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ntsr-rgrid-wrap .ntsr-avatar--xs { width: 22px; height: 22px; border-width: 1.5px; font-size: 10px; }
@container (max-width: 175px) {
    .ntsr-rcard__meta .ntsr-avatar { display: none; }
}
@container (max-width: 140px) {
    .ntsr-rcard__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .ntsr-rcard__caption { font-size: 12.5px; }
}
.ntsr-rcard__likes { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-weight: 700; }
.ntsr-rcard__likes .ntsr-i { width: 13px; height: 13px; fill: #ff5470; stroke: #ff5470; }

/* load more */
.ntsr-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.ntsr-rgrid-wrap .ntsr-load-more { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px 0 26px; border-radius: 40px; border: 1.5px solid rgba(120, 125, 150, .3); font-size: 14px; font-weight: 700; transition: color .2s, border-color .2s, background .2s, box-shadow .3s, transform .3s var(--ntsr-spring); }
.ntsr-rgrid-wrap .ntsr-load-more .ntsr-i { width: 18px; height: 18px; transition: transform .3s var(--ntsr-spring); }
.ntsr-rgrid-wrap .ntsr-load-more:hover { border-color: transparent; background: linear-gradient(135deg, var(--ntsr-a), var(--ntsr-b)); color: #fff; box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--ntsr-a) 60%, transparent); transform: translateY(-2px); }
.ntsr-rgrid-wrap .ntsr-load-more:hover .ntsr-i { transform: translateY(2px); }
.ntsr-rgrid-wrap .ntsr-load-more:focus-visible { outline: 3px solid var(--ntsr-a); outline-offset: 3px; }

@media (max-width: 1000px) {
    .ntsr-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ntsr-rgrid-wrap--carousel .ntsr-rcard { flex-basis: calc((100% - 28px) / 3.2); }
}
@media (max-width: 680px) {
    .ntsr-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ntsr-rgrid-wrap--carousel .ntsr-rcard { flex-basis: 44%; min-width: 0; }
    .ntsr-rgrid-wrap .ntsr-rcard { --r: min(var(--ntsr-card-r, 18px), 14px); }
    .ntsr-rcard__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* ───────── Bento mosaic ─────────
   Column count comes from the container width (JS places every card explicitly
   so the mosaic is always flush; without JS it falls back to dense auto-flow). */
.ntsr-rgrid-wrap--bento .ntsr-rgrid__viewport { container-type: inline-size; container-name: ntsr-bento; }
.ntsr-rgrid-wrap--bento .ntsr-rgrid {
    --ntsr-bc: 6; --g: 14px;
    grid-template-columns: repeat(var(--ntsr-bcc, var(--ntsr-bc)), minmax(0, 1fr));
    grid-auto-rows: calc((100cqi - (var(--ntsr-bcc, var(--ntsr-bc)) - 1) * var(--g)) / var(--ntsr-bcc, var(--ntsr-bc)) * 1.18);
    grid-auto-flow: row dense; gap: var(--g);
}
@container ntsr-bento (max-width: 1100px) { .ntsr-rgrid-wrap--bento .ntsr-rgrid { --ntsr-bc: 4; } }
@container ntsr-bento (max-width: 820px) { .ntsr-rgrid-wrap--bento .ntsr-rgrid { --ntsr-bc: 3; } }
@container ntsr-bento (max-width: 560px) { .ntsr-rgrid-wrap--bento .ntsr-rgrid { --ntsr-bc: 2; --g: 10px; } }
.ntsr-rgrid-wrap--bento .ntsr-rcard { aspect-ratio: auto; height: 100%; min-height: 0; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl { grid-column: span 2; grid-row: span 2; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__body { left: 18px; right: 18px; bottom: 18px; gap: 10px; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__caption { font-size: clamp(16px, 6.2cqi, 24px); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; -webkit-line-clamp: 3; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__meta { font-size: 12.5px; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__top { top: 14px; left: 14px; right: 14px; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__play .ntsr-i { width: 26px; height: 26px; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl.is-previewing .ntsr-rcard__play { opacity: 0; }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-xl .ntsr-rcard__shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, transparent 22%, transparent 45%, rgba(0, 0, 0, .6) 72%, rgba(0, 0, 0, .92) 100%); }
.ntsr-rgrid-wrap--bento .ntsr-rcard.is-tall .ntsr-rcard__caption { -webkit-line-clamp: 3; }

/* ==========================================================================
   Reels popup
   ========================================================================== */
.ntsr-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ntsr-modal[hidden] { display: none; }
.ntsr-modal.is-closing[hidden] { display: flex; pointer-events: none; }
.ntsr-modal__backdrop { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(30, 24, 70, .78), rgba(6, 6, 14, .9)); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); animation: ntsrFadeIn .3s ease both; }
.ntsr-modal .ntsr-modal__close { position: absolute; z-index: 3; top: 18px; right: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background .2s, transform .35s var(--ntsr-spring); }
.ntsr-modal .ntsr-modal__close:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.ntsr-modal .ntsr-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ntsr-modal__close .ntsr-i { width: 22px; height: 22px; }
/* Site name + "Reels" in the corner (wide screens) */
.ntsr-modal .ntsr-modal__brand {
    position: absolute; z-index: 3; top: 18px; left: 22px; display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 5px 16px 5px 5px; border-radius: 40px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; animation: ntsrFadeIn .4s .1s ease both;
}
.ntsr-modal a.ntsr-modal__brand:hover, .ntsr-modal a.ntsr-modal__brand:focus { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.ntsr-modal .ntsr-modal__brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ntsr-modal__brand-av { flex: none; width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: var(--ntsr-ring); }
.ntsr-modal .ntsr-modal__brand-av img, .ntsr-modal__brand-av span { display: grid; place-items: center; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 50%; object-fit: cover; border: 2px solid #111; background: #333; color: #fff; font-size: 14px; font-weight: 800; }
.ntsr-modal__brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ntsr-modal__brand-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 750; }
.ntsr-modal__brand-txt small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; opacity: .72; }
.ntsr-modal .ntsr-modal__brand-txt small .ntsr-i { width: 12px; height: 12px; }
@media (max-width: 1099px) { .ntsr-modal .ntsr-modal__brand { display: none; } }
.ntsr-modal__body { position: relative; z-index: 2; width: min(var(--ntsr-player-w, 440px), calc((100vh - 40px) * 9 / 16)); animation: ntsrModalIn .45s var(--ntsr-ease) both; will-change: transform; }
.ntsr-modal.is-flip .ntsr-modal__body, .ntsr-modal.is-flip .ntsr-modal__backdrop { animation: none; }
@keyframes ntsrModalIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.ntsr-player--modal { height: calc(100vh - 40px); height: calc(100dvh - 40px); max-height: 900px; }
@media (max-width: 600px) {
    .ntsr-modal { padding: 0; }
    .ntsr-modal__body { width: 100%; height: 100%; }
    .ntsr-player--modal { height: 100dvh; max-height: none; border-radius: 0; }
    .ntsr-modal .ntsr-modal__close { top: 12px; right: auto; left: 12px; width: 40px; height: 40px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
    .ntsr-player--modal .ntsr-reel__top { left: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .ntsr-rgrid-wrap .ntsr-rcard, .ntsr-reel.is-active .ntsr-reel__info > *, .ntsr-reel.is-active .ntsr-reel__rail > * { animation: none !important; }
    .ntsr-reel__loader::before { animation: none; }
}
.ntsr-modal.is-closing .ntsr-modal__brand { opacity: 0; transition: opacity .15s; }
