.nt-story-bar {
  margin: 0 auto;
  overflow: visible !important;
  position: relative;
  z-index: 98;
}

.nt-story-bar__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.25rem;
  position: relative;
  z-index: 999998;
}

.nt-story-item {
  border: 0;
  background: transparent;
  color: inherit;
  width: 90px;
  flex: 0 0 auto;
  position: relative;
  z-index: 999998;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.nt-story-item:focus,
.nt-story-item:focus-visible,
.nt-story-item:active {
  outline: none;
  box-shadow: none;
}

.nt-story-item__ring {
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(85deg, #e53290 , #671cf4, #e53290, #f6d246 );
  outline: none;
  box-shadow: none;
}

.nt-story-item__avatar,
.nt-story-item__avatar img,
.nt-story-item button {
  outline: none;
  box-shadow: none;
}

.nt-story-item__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.nt-story-item__title {
/*  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(100% + 10px);*/
 /* transform: translate(-50%, 6px);*/
/*  transform: translate(-50%, 0);*/
  margin: 0;
  padding: 10px;
/*  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);*/
 /* box-shadow: 0 8px 18px rgba(2, 6, 23, 0.32);*/
  color: #444444;
  font-size: 12px;
/*  font-weight: 600;*/
  line-height: 3;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
/*  opacity: 0;
  visibility: hidden;*/
  pointer-events: none;
 /* transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s ease;*/
  z-index: 1000000;
}

/*.nt-story-item__title::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent;
}*/

.nt-story-item:hover .nt-story-item__title,
.nt-story-item:focus .nt-story-item__title,
.nt-story-item:focus-visible .nt-story-item__title {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nt-story-item:hover,
.nt-story-item:focus,
.nt-story-item:focus-visible {
  z-index: 999999;
}

.nt-story-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.nt-story-modal.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nt-story-modal .nt-story-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 14, 23, 0.62) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.nt-story-modal .nt-story-card.nt-story-player {
  position: relative !important;
  width: min(92vw, 420px) !important;
  height: min(90vh, 760px) !important;
  aspect-ratio: 9 / 16 !important;
  touch-action: pan-y !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #000000 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9) !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.nt-story-modal .nt-story-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 2 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nt-story-modal .nt-story-card.nt-story-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none !important;
}

.nt-story-modal .nt-story-card.nt-story-player::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none !important;
}

.nt-story-modal .nt-story-progress-wrapper {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 30;
  cursor: pointer;
  overflow: hidden;
}

.nt-story-modal .nt-story-top-controls {
  position: absolute;
  top: 22px;
  inset-inline-end: 14px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nt-story-modal .nt-story-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  direction: ltr;
  text-align: center;
}

.nt-story-modal .nt-story-volume-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-story-modal .nt-story-volume-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.nt-story-modal .nt-story-volume-control:hover .nt-story-volume-popup,
.nt-story-modal .nt-story-volume-control:focus-within .nt-story-volume-popup {
  opacity: 1;
  pointer-events: auto;
}

.nt-story-modal .nt-story-volume-popup-inner {
  width: 32px;
  height: 94px;
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.nt-story-modal .nt-story-volume-slider-vertical {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 6px;
  height: 72px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.nt-story-modal .nt-story-top-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s;
  padding: 0;
}

.nt-story-modal .nt-story-top-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.nt-story-modal .nt-story-top-ctrl-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.nt-story-modal .nt-story-progress-fill {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.nt-story-modal:not([dir="rtl"]) .nt-story-player:not([dir="rtl"]) .nt-story-progress-wrapper {
  direction: ltr;
}

.nt-story-modal[dir="rtl"] .nt-story-progress-wrapper,
.nt-story-modal .nt-story-player[dir="rtl"] .nt-story-progress-wrapper {
  direction: rtl;
}

.nt-story-modal .nt-story-header {
  position: absolute;
  top: 7%;
  left: auto;
  right: 20%;
  z-index: 30;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.nt-story-modal .nt-story-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.nt-story-modal .nt-story-playback-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 40;
  transition: all 0.2s ease;
  pointer-events: none;
}

.nt-story-modal .nt-story-playback-feedback svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
}

.nt-story-modal .nt-story-playback-feedback.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nt-story-modal .nt-story-actions {
  position: absolute;
  right: 12px;
  bottom: 150px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.nt-story-modal .nt-story-action-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nt-story-modal .nt-story-action-btn svg {
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: #ffffff;
  stroke-width: 1.7;
  transition: fill 0.22s ease, stroke 0.22s ease, transform 0.22s ease;
}

.nt-story-modal .nt-story-action-btn[data-action-like].is-active svg,
.nt-story-modal .nt-story-action-btn[data-action-like].is-liked svg {
  fill: #ff3040;
  stroke: #ef4444;
}

.nt-story-modal .nt-story-action-btn[data-action-save].is-active,
.nt-story-modal .nt-story-action-btn[data-action-save].is-saved {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.18);
}

.nt-story-modal .nt-story-action-btn[data-action-save].is-active svg,
.nt-story-modal .nt-story-action-btn[data-action-save].is-saved svg {
  fill: #ffffff;
  stroke: #ffffff;
}

.nt-story-modal .nt-story-action-btn[data-action-save].is-pulse {
  transform: scale(1.12);
}

.nt-story-modal .nt-story-action-btn span {
  position: absolute;
  right: 50px;
  min-width: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.nt-story-modal .nt-story-bottom-stream {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  z-index: 30;
  pointer-events: auto;
  padding-top: 16px;
  overflow: visible;
}

.nt-story-modal .nt-story-cards-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 16px 4px 4px;
  cursor: grab;
  direction: ltr !important;
  scroll-behavior: auto !important;
  user-select: none;
  -webkit-user-select: none;
}

.nt-story-modal .nt-story-cards-track::-webkit-scrollbar {
  display: none;
}

.nt-story-modal .nt-story-cards-track.is-dragging {
  cursor: grabbing !important;
}

.nt-story-modal .nt-story-cards-track.is-dragging * {
  user-select: none !important;
  pointer-events: none !important;
}

.nt-story-modal .nt-story-cards-track .nt-story-card {
  background: rgba(18, 22, 32, 0.92) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px !important;
  color: #fff;
  min-height: 92px !important;
  height: 92px !important;
  padding: 10px 14px !important;
  width: calc(100% - 16px);
  min-width: 270px;
  max-width: 360px;
  flex: 0 0 calc(92% - 8px);
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
  direction: inherit;
  overflow: visible;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--desc {
  position: relative;
  padding-top: 10px !important;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-card-badge {
  position: absolute;
  top: -12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.52);
  background: #1e293b;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nt-story-modal[dir="rtl"] .nt-story-cards-track .nt-story-card .nt-story-card-badge {
  right: 16px;
  left: auto;
}

.nt-story-modal[dir="ltr"] .nt-story-cards-track .nt-story-card .nt-story-card-badge {
  left: 16px;
  right: auto;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product {
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product .nt-story-card-media {
  aspect-ratio: 1 / 1;
  height: 100%;
  width: auto;
  min-width: 0;
  min-height: 100%;
  max-height: none;
  border-start-start-radius: 16px;
  border-end-start-radius: 16px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  overflow: hidden;
  align-self: stretch;
  flex-shrink: 0;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product .nt-story-card-media img {
  aspect-ratio: 1 / 1;
  width: auto !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  margin: 0;
  flex-shrink: 0 !important;
  user-select: none;
  pointer-events: none;
}

.nt-story-modal .nt-story-cards-track .nt-story-card h4,
.nt-story-modal .nt-story-cards-track .nt-story-card p {
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-card-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  flex: 1 !important;
  margin-inline-start: 0;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product .nt-story-card-main {
  padding: 10px 10px 10px 12px;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product .nt-story-card-actions {
  padding: 10px 10px 10px 0;
}

.nt-story-modal .nt-story-cards-track .nt-story-card h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  max-height: 36px !important;
  overflow: hidden;
  text-overflow: ellipsis !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.nt-story-modal .nt-story-cards-track .nt-story-card p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .price {
  margin: 0 !important;
  color: #38bdf8 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--desc h4 {
  font-weight: 700;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--desc p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  white-space: normal;
}

.nt-story-modal .nt-story-cards-track .nt-story-card button {
  margin-inline-start: 8px;
  border: 0;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #fff !important;
  padding: 8px 14px !important;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 700 !important;
  flex-shrink: 0;
  cursor: pointer !important;
  transition: background 0.2s;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(30, 64, 175, 0.9)) !important;
  border: 1px solid rgba(191, 219, 254, 0.5);
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--product .nt-story-icon-btn {
  margin: 0 !important;
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-icon-btn.is-loading svg {
  animation: ntStorySpin .7s linear infinite;
}
.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-icon-btn.is-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92)) !important;
  border-color: rgba(167, 243, 208, 0.8);
}

.nt-story-modal .nt-story-cards-track .nt-story-card .nt-story-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.5);
}

.nt-story-modal .nt-story-cards-track .nt-story-card.nt-story-card--desc .nt-story-icon-btn {
  margin-inline-start: auto;
}

.nt-story-modal .nt-story-close-btn {
  position: absolute;
  top: 5% !important;
  right: 10% !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000000 !important;
  transition: all 0.2s ease !important;
  padding-top: 5px;
}

.nt-story-modal .nt-story-close-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.08);
}

.nt-story-modal .nt-story-nav-btn {
  position: absolute;
  z-index: 1000000 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  background: rgba(20, 24, 33, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding-top: 0px;
}

.nt-story-modal .nt-story-nav-btn svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
  margin: auto !important;
  fill: none !important;
  pointer-events: none !important;
}

.nt-story-modal .nt-story-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.08) !important;
}

.nt-story-modal .nt-story-nav-prev {
  top: calc(50% - 60px);
  right: calc(50% - 280px);
}

.nt-story-modal .nt-story-nav-next {
  top: calc(50% + 20px);
  right: calc(50% - 280px);
}

.nt-story-modal .nt-story-drawer,
.nt-story-modal .nt-story-settings-sheet {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 40px));
  max-height: min(48vh, 50%);
  bottom: -100%;
  z-index: 100010;
  background: rgba(20, 24, 33, 0.88);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-inline: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px 18px 0 0;
  color: #fff;
  padding: 14px;
  transition: bottom 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.nt-story-modal .nt-story-drawer.is-open,
.nt-story-modal .nt-story-settings-sheet.is-open {
  bottom: clamp(12px, 4vh, 28px);
}

.nt-story-modal .nt-story-drawer::-webkit-scrollbar,
.nt-story-modal .nt-story-settings-sheet::-webkit-scrollbar {
  width: 7px;
}

.nt-story-modal .nt-story-drawer::-webkit-scrollbar-track,
.nt-story-modal .nt-story-settings-sheet::-webkit-scrollbar-track {
  background: transparent;
}

.nt-story-modal .nt-story-drawer::-webkit-scrollbar-thumb,
.nt-story-modal .nt-story-settings-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
}

.nt-story-modal .nt-story-drawer__header,
.nt-story-modal .nt-story-settings-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.nt-story-modal .nt-story-drawer__header h4,
.nt-story-modal .nt-story-settings-sheet__header h4 {
  margin: 0;
}

.nt-story-modal .nt-story-drawer__header button,
.nt-story-modal .nt-story-settings-sheet__header button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.nt-story-modal .nt-story-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #ffffff;
}

.nt-story-modal .nt-story-settings-row span,
.nt-story-modal .nt-story-settings-sheet h4 {
  color: #f8fafc;
  opacity: 1;
}

.nt-story-modal .nt-story-settings-row input[type="checkbox"] {
  accent-color: #3b82f6;
  cursor: pointer;
}

.nt-story-modal .nt-story-settings-row select {
  min-width: 130px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #1e293b;
  color: #f1f5f9;
  padding: 8px 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nt-story-modal .nt-story-settings-row select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
  background: #0f172a;
}

.nt-story-modal .nt-story-settings-row select option {
  background: #18181b;
  color: #ffffff;
}

.nt-story-modal .nt-story-settings-actions {
  display: flex;
  gap: 8px;
}

.nt-story-modal .nt-story-settings-actions button,
.nt-story-modal .nt-story-comments-form button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 10px;
}

.nt-story-modal .nt-story-comments-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 14px;
  margin-bottom: 0;
  height: 38px;
  min-height: 38px;
  max-height: 96px;
  resize: none;
  line-height: 1.45;
  text-align: start;
  direction: inherit;
  transition: border-color 0.2s ease, border-radius 0.2s ease, min-height 0.2s ease, height 0.2s ease;
}

.nt-story-modal .nt-story-comments-form {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.nt-story-modal .nt-story-comments-form textarea:focus,
.nt-story-modal .nt-story-comments-form.is-focused textarea {
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  min-height: 46px;
  height: 46px;
}

.nt-story-modal .nt-story-comments-form textarea:not(:placeholder-shown) {
  min-height: 46px;
  height: 46px;
}

.nt-story-modal .nt-story-comments-form button {
  position: static;
  width: auto;
  min-width: 70px;
  padding: 7px 12px;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nt-story-modal .nt-story-login-hint {
  margin-top: 8px;
  text-align: start;
  direction: inherit;
  flex: 0 0 auto;
}

.nt-story-modal[dir="rtl"] .nt-story-comments-form textarea,
.nt-story-modal[dir="rtl"] .nt-story-login-hint {
  direction: rtl;
  text-align: right;
}

.nt-story-modal[dir="ltr"] .nt-story-comments-form textarea,
.nt-story-modal[dir="ltr"] .nt-story-login-hint {
  direction: ltr;
  text-align: left;
}

.nt-story-modal .nt-story-drawer__content[data-comments-list] {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(40vh, 100%);
  overflow-y: auto;
  margin-bottom: 10px;
  padding-inline-end: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.nt-story-modal .nt-story-drawer,
.nt-story-modal .nt-story-drawer__body,
.nt-story-modal .nt-story-comments-list,
.nt-story-modal .nt-story-drawer__content[data-comments-list] {
  pointer-events: auto !important;
}
.nt-story-modal .nt-story-drawer__content[data-comments-list],
.nt-story-modal .nt-story-comments-list,
.nt-story-modal .nt-story-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 280px;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nt-story-modal .nt-story-drawer__content[data-tags-list] {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(40vh, 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.nt-story-modal .nt-story-drawer__content[data-description-full] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: min(40vh, 100%);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.nt-story-modal .nt-story-drawer__content[data-comments-list]::-webkit-scrollbar,
.nt-story-modal .nt-story-drawer__content[data-tags-list]::-webkit-scrollbar,
.nt-story-modal .nt-story-drawer__content[data-description-full]::-webkit-scrollbar {
  width: 7px;
}

.nt-story-modal .nt-story-drawer__content[data-comments-list]::-webkit-scrollbar-thumb,
.nt-story-modal .nt-story-drawer__content[data-tags-list]::-webkit-scrollbar-thumb,
.nt-story-modal .nt-story-drawer__content[data-description-full]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
}

.nt-story-modal .nt-story-tags-group h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.nt-story-modal .nt-story-tag-item {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  min-height: 84px;
}

.nt-story-modal .nt-story-tag-item__media {
  width: 74px;
  min-width: 74px;
  min-height: 64px;
  max-height: 84px;
  border-radius: 10px;
  overflow: hidden;
}

.nt-story-modal .nt-story-tag-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.nt-story-modal .nt-story-tag-item__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.nt-story-modal .nt-story-tag-item__meta strong {
  font-size: 13px;
  line-height: 1.4;
}

.nt-story-modal .nt-story-tag-item__meta span {
  font-size: 12px;
  color: #93c5fd;
}

.nt-story-modal .nt-story-tag-item__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.nt-story-modal .nt-story-tag-item__actions a,
.nt-story-modal .nt-story-tag-item__actions button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  white-space: nowrap;
}

.nt-story-modal .nt-story-tag-item__actions .nt-story-tag-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-story-modal .nt-story-tag-item__actions .nt-story-add-cart-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(30, 64, 175, 0.9));
  border: 1px solid rgba(191, 219, 254, 0.5);
  color: #ffffff;
}

.nt-story-modal .nt-story-tag-item__actions .nt-story-add-cart-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.nt-story-modal .nt-story-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nt-story-modal .nt-story-chip-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  text-decoration: none;
}

.nt-story-modal .nt-story-comment-item {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.nt-story-modal .nt-story-comment-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.nt-story-modal .nt-story-comment-item time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.nt-story-modal .nt-story-comment-item p,
.nt-story-modal .nt-story-comment-text {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  white-space: pre-line;
  word-break: break-word;
}

.nt-story-modal .nt-story-comments-loading,
.nt-story-modal .nt-story-comments-empty {
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.nt-story-modal .nt-story-login-modal {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.nt-story-modal .nt-story-login-modal.is-open {
  display: flex;
}

.nt-story-modal .nt-story-login-modal__content {
  width: min(92vw, 360px);
  padding: 16px;
  border-radius: 14px;
  background: rgba(20, 24, 33, 0.95);
  color: #fff;
  direction: ltr;
}

html.nt-story-lock-scroll,
body.nt-story-lock-scroll {
  overflow: hidden !important;
  touch-action: auto;
}

.nt-story-toast {
  position: relative;
  transform: translateY(18px) scale(0.97);
  background: linear-gradient(180deg, rgba(18, 22, 36, 0.95), rgba(10, 14, 27, 0.95));
  color: #f8fafc;
  padding: 0.66rem 0.88rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  z-index: 120002;
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
  max-width: min(90vw, 320px);
}

.nt-story-toast-stack {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 120010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.nt-story-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nt-story-toast__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-story-toast__icon svg {
  width: 18px;
  height: 18px;
}

.nt-story-toast__text {
  font-size: 12px;
  line-height: 1.45;
}

.nt-story-toast--success .nt-story-toast__icon {
  color: #34d399;
}

.nt-story-toast--error .nt-story-toast__icon {
  color: #f87171;
}

.nt-story-modal .nt-story-comments-form button.is-loading {
  opacity: 0.8;
  cursor: wait;
}

.nt-story-modal .nt-story-comments-form button.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-inline-start: 0.35rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 1);
  display: inline-block;
  vertical-align: middle;
  animation: ntStorySpin 0.7s linear infinite;
}

.nt-story-modal .nt-story-comments-form button.is-success {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(110, 231, 183, 0.6);
}

@keyframes ntStorySpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .nt-story-modal .nt-story-nav-btn {
    display: none;
  }

  .nt-story-modal .nt-story-close-btn {
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 24px !important;
  }

  .nt-story-modal .nt-story-top-controls {
    top: 16px !important;
    right: 14px !important;
    left: auto !important;
  }

  .nt-story-modal .nt-story-card.nt-story-player {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }

  .nt-story-modal .nt-story-drawer,
  .nt-story-modal .nt-story-settings-sheet {
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    max-height: min(62vh, calc(100% - 72px));
    border-inline: 0;
    border-radius: 18px 18px 0 0;
  }
}

.nt-story-explore {
  margin: 0 0 1.25rem;
}

.nt-story-explore__filters-bar {
  position: sticky;
  top: 10px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  margin-bottom: 8px;
}

.nt-story-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}

.nt-story-pill.is-active,
.nt-story-pill--modal.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.nt-story-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.nt-story-filter-modal.is-open {
  display: block;
}

.nt-story-filter-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
}

.nt-story-filter-modal__dialog {
  position: relative;
  width: min(94vw, 520px);
  margin: clamp(18px, 5vh, 48px) auto 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 45px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.nt-story-filter-modal__header,
.nt-story-filter-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.nt-story-filter-modal__header h3 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.nt-story-filter-modal__close,
.nt-story-filter-modal__exit {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
}

.nt-story-filter-modal__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  border: 1px solid #d6dfec;
  border-radius: 12px;
  background: #fff;
  padding: 0 10px;
}

.nt-story-filter-modal__search {
  border: 0;
  width: 100%;
  min-height: 40px;
  background: transparent;
  color: #0f172a;
}

.nt-story-filter-modal__search:focus {
  outline: none;
}

.nt-story-filter-modal__body {
  margin: 0 14px;
  max-height: 380px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.nt-story-filter-modal__body::-webkit-scrollbar {
  width: 7px;
}

.nt-story-filter-modal__body::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.46);
  border-radius: 99px;
}

.nt-story-filter-modal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
}

.nt-story-filter-modal__item strong {
  font-size: 13px;
}

.nt-story-filter-modal__item span {
  color: #64748b;
  font-size: 12px;
}

.nt-story-filter-modal__item:hover,
.nt-story-filter-modal__item.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.nt-story-filter-modal__item--product {
  justify-content: flex-start;
}

.nt-story-filter-modal__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  flex: 0 0 auto;
}

.nt-story-filter-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nt-story-filter-modal__thumb--empty {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-story-filter-modal__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nt-story-filter-modal__empty {
  padding: 10px;
  text-align: center;
  color: #64748b;
  border: 1px dashed #d5deea;
  border-radius: 10px;
}

.nt-story-filter-modal__clear {
  color: #0369a1;
  text-decoration: none;
}

.nt-story-filter-modal__clear--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-weight: 600;
}

.nt-story-filter-modal__clear--btn:hover {
  background: #ffe4e6;
  color: #991b1b;
}

.nt-story-filter-modal__clear-icon {
  font-size: 14px;
  line-height: 1;
}

.nt-story-explore__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nt-story-explore-card {
  margin: 0;
}

.nt-story-explore-card__cover {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.nt-story-explore-card__cover img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.nt-story-explore-card__cover:hover img,
.nt-story-explore-card__cover:focus-visible img {
  transform: scale(1.04);
}

.nt-story-explore-card__play {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(12, 18, 31, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.nt-story-explore-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(12, 18, 31, 0.72);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.nt-story-explore-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.88));
  padding: 34px 10px 10px;
  color: #f8fafc;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.nt-story-explore-card__cover:hover .nt-story-explore-card__overlay,
.nt-story-explore-card__cover:focus-visible .nt-story-explore-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.nt-story-explore-card__overlay strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nt-story-explore-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.nt-story-empty {
  margin: 0;
  color: #64748b;
}

.nt-story-empty--wide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.nt-story-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nt-story-pagination__pages {
  display: flex;
  gap: 6px;
}

.nt-story-pagination__page,
.nt-story-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid #d7e0ec;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
}

.nt-story-pagination__page.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

@media (max-width: 1199px) {
  .nt-story-explore__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .nt-story-page {
    padding: 0 4px;
  }

  .nt-story-explore {
    margin: 0 0 1rem;
  }

  .nt-story-explore__filters-bar {
    top: 0;
    gap: 6px;
    padding: 6px 2px 8px;
    margin-bottom: 4px;
  }

  .nt-story-pill,
  .nt-story-pill--modal {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nt-story-filter-modal__dialog {
    width: calc(100vw - 18px);
    margin-top: 10px;
    border-radius: 14px;
  }

  .nt-story-explore__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .nt-story-explore-card__cover {
    border-radius: 2px;
  }

  .nt-story-explore-card__cover img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .nt-story-explore-card__overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 30px 8px 8px;
  }

  .nt-story-explore-card__overlay strong {
    font-size: 12px;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .nt-story-page {
    padding: 0 2px;
  }

  .nt-story-explore__cards {
    gap: 2px;
  }

  .nt-story-explore-card__cover {
    border-radius: 0;
  }
}

.nt-story-page {
  max-width: 1180px;
  margin: 1.2rem auto 2rem;
  padding: 0 12px;
}

.nt-story-page__hero {
  display: grid;
  grid-template-columns: clamp(280px, 26vw, 320px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.nt-story-page__left-column {
  display: grid;
  gap: .85rem;
}

.nt-story-page__video-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1324;
  box-shadow: 0 24px 48px rgba(2, 8, 22, .35);
}

.nt-story-page-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0b1324;
}

.nt-story-page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.nt-story-page-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .58));
}

.nt-story-page-cover__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .46);
  backdrop-filter: blur(5px);
  background: rgba(8, 13, 26, .45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(2, 8, 22, .33);
}

.nt-story-page-cover__play svg {
  width: 34px;
  height: 34px;
  margin-left: 2px;
}

.nt-story-page-cover:hover img {
  transform: scale(1.03);
  filter: brightness(1.07);
}

.nt-story-page__meta-card {
  border-radius: 16px;
  border: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  padding: 1rem 1.1rem;
}

.nt-story-page__meta h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: #0f172a;
}

.nt-story-page__stats {
  list-style: none;
  margin: 0 0 .95rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.nt-story-page__stats li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  background: #f6f9ff;
  padding: .32rem .7rem;
  color: #1e3a5f;
  font-size: .83rem;
}

.nt-story-page__stats svg {
  width: 14px;
  height: 14px;
}

.nt-story-page__description {
  border: 1px solid #e8edf5;
  background: #f8fbff;
  border-radius: 12px;
  padding: .85rem .95rem;
  line-height: 1.9;
  color: #24354d;
}

.nt-story-page__section {
  margin-top: 1rem;
}

.nt-story-page__section h2 {
  margin: 0 0 .65rem;
  font-size: 1rem;
  color: #0f172a;
}

.nt-story-page__side-card {
  border-radius: 14px;
  border: 1px solid #e5edf7;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  padding: .75rem .8rem;
}

.nt-story-side-card--tags {
  margin-top: 1rem;
}

.nt-story-side-card--categories {
  margin-top: .85rem;
}

.nt-story-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.nt-story-page__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e5f8;
  background: #edf4ff;
  color: #1d4e89;
  text-decoration: none;
  padding: .35rem .78rem;
}

.nt-story-page__chip:hover {
  background: #dfeeff;
}

.nt-story-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.nt-story-page__btn {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #d4e1f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  padding: .44rem .75rem;
}

.nt-story-page__btn svg {
  width: 16px;
  height: 16px;
}

.nt-story-page__btn--primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.nt-story-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .9rem;
}

.nt-story-page__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: .8rem;
}

.nt-story-page__divider::before,
.nt-story-page__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .1), rgba(100, 116, 139, .6), rgba(148, 163, 184, .1));
}

.nt-story-page__divider span {
  border: 1px solid #dbe5f3;
  background: #ffffff;
  border-radius: 10px;
  padding: .32rem .95rem;
  color: #0f172a;
  font-weight: 700;
}

.nt-story-page__products-scroll {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.nt-story-page__products-scroll::-webkit-scrollbar {
  height: 7px;
}

.nt-story-page__products-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .45);
  border-radius: 99px;
}

.nt-story-page__product--slide {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  scroll-snap-align: start;
}

.nt-story-page__product {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nt-story-product-card {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.nt-story-product-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 200px;
  overflow: hidden;
}

.nt-story-page__product img {
  width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.nt-story-page__product-body {
  padding: .65rem;
}

.nt-story-product-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.nt-story-page__product h3 {
  margin: 0 0 .35rem;
  font-size: .9rem;
  line-height: 1.45;
  min-height: 40px;
}

.nt-story-page__price {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  color: #0f766e;
}

.nt-story-shortcode-card,
.nt-story-embedded-card {
  display: inline-flex;
  flex-direction: column;
  width: min(100%, 220px);
  max-width: 240px;
  border: 0;
  border-radius: 16px;
  padding: 0;
  margin: .75rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .26);
  text-align: inherit;
  cursor: pointer;
}

.nt-story-shortcode-card__media {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.nt-story-shortcode-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.nt-story-shortcode-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, .08), rgba(2, 6, 23, .75));
}

.nt-story-shortcode-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .56);
  background: rgba(11, 18, 32, .52);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: transform .25s ease, background .25s ease;
}

.nt-story-shortcode-card__play svg {
  width: 24px;
  height: 24px;
  margin-inline-start: 2px;
}

.nt-story-shortcode-card__title {
  padding: .66rem .72rem;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nt-story-shortcode-card:hover .nt-story-shortcode-card__media img,
.nt-story-shortcode-card:focus-visible .nt-story-shortcode-card__media img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.nt-story-shortcode-card:hover .nt-story-shortcode-card__play,
.nt-story-shortcode-card:focus-visible .nt-story-shortcode-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(20, 32, 56, .72);
}

@media (max-width: 991px) {
  .nt-story-page__hero {
    grid-template-columns: 1fr;
  }

  .nt-story-page__video-card {
    margin: 0 auto;
  }

  .nt-story-page__left-column {
    order: 1;
  }
}

/* Stories archive mobile edge-to-edge overrides */
.page-stories .page-header,
.page-stories #js-product-list-header,
.page-stories .breadcrumb,
body#module-nt_story-stories .page-header,
body#module-nt_story-stories #js-product-list-header,
body#module-nt_story-stories .breadcrumb {
  display: none !important;
}

@media (max-width: 768px) {
  .page-stories #wrapper,
  .page-stories #content-wrapper,
  .page-stories #content,
  body#module-nt_story-stories #wrapper,
  body#module-nt_story-stories #content-wrapper,
  body#module-nt_story-stories #content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-stories .nt-story-explore,
  .page-stories .nt-story-explore-page,
  .page-stories .nt-story-explore__cards,
  body#module-nt_story-stories .nt-story-explore,
  body#module-nt_story-stories .nt-story-explore-page,
  body#module-nt_story-stories .nt-story-explore__cards {
    width: calc(100% + 30px) !important;
    max-width: calc(100% + 30px) !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding: 0 1px !important;
    box-sizing: border-box;
  }

  .page-stories .nt-story-explore__filters-bar,
  body#module-nt_story-stories .nt-story-explore__filters-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 6px 4px;
    margin: 0 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-stories .nt-story-explore__filters-bar::-webkit-scrollbar,
  body#module-nt_story-stories .nt-story-explore__filters-bar::-webkit-scrollbar {
    display: none;
  }

  .page-stories .nt-story-pill,
  .page-stories .nt-story-pill--modal,
  body#module-nt_story-stories .nt-story-pill,
  body#module-nt_story-stories .nt-story-pill--modal {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-stories .nt-story-explore__cards,
  body#module-nt_story-stories .nt-story-explore__cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5px !important;
  }

  .page-stories .nt-story-explore-card,
  .page-stories .nt-story-explore-card__cover,
  .page-stories .nt-story-explore-card__cover img,
  body#module-nt_story-stories .nt-story-explore-card,
  body#module-nt_story-stories .nt-story-explore-card__cover,
  body#module-nt_story-stories .nt-story-explore-card__cover img {
    border-radius: 0 !important;
  }

  .page-stories .nt-story-explore-card__cover img,
  body#module-nt_story-stories .nt-story-explore-card__cover img {
    aspect-ratio: 9 / 16 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  .page-stories .nt-story-explore,
  .page-stories .nt-story-explore-page,
  .page-stories .nt-story-explore__cards,
  body#module-nt_story-stories .nt-story-explore,
  body#module-nt_story-stories .nt-story-explore-page,
  body#module-nt_story-stories .nt-story-explore__cards {
    width: calc(100% + 30px) !important;
    max-width: calc(100% + 30px) !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding: 0 1px !important;
  }

  .page-stories .nt-story-explore__cards,
  body#module-nt_story-stories .nt-story-explore__cards {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5px !important;
  }
}
