@charset "UTF-8";
/* Standalone x-select — vars روی dropdown هم هست چون portal خارج از .x-select است */
.x-select {
  --xs-radius: 1rem;
  --xs-border: var(--home-border, rgb(15 23 42 / 10%));
  --xs-border-hover: var(--home-border-strong, rgb(15 23 42 / 16%));
  --xs-border-focus: rgb(15 23 42 / 22%);
  --xs-ring: rgb(15 23 42 / 7%);
  --xs-trigger-bg: #ffffff;
  --xs-dropdown-bg: #ffffff;
  --xs-dropdown-border: rgb(15 23 42 / 12%);
  --xs-text: var(--home-heading, #07111f);
  --xs-muted: var(--home-muted, #64748b);
  --xs-accent: var(--home-heading, #07111f);
  --xs-shadow: 0 20px 48px rgb(15 23 42 / 12%), 0 2px 8px rgb(15 23 42 / 6%);
  --xs-group-bg: rgb(15 23 42 / 4%);
  --xs-option-hover: rgb(15 23 42 / 5%);
  --xs-option-active: rgb(15 23 42 / 8%);
  --xs-selected-bg: rgb(15 23 42 / 6%);
  --xs-font: var(--home-font, x-font-normal, "Yekan Bakh FaNum", Tahoma, system-ui, sans-serif);
  position: relative;
  display: block;
  width: 100%;
  font: inherit;
}

html[data-home-theme=dark] .x-select,
body.dark .x-select {
  --xs-border: var(--home-border, rgb(255 255 255 / 14%));
  --xs-border-hover: var(--home-border-strong, rgb(255 255 255 / 22%));
  --xs-border-focus: var(--brand-primary, rgb(255 255 255 / 28%));
  --xs-ring: rgba(91, 159, 255, 0.18);
  --xs-trigger-bg: var(--home-surface-strong, var(--box-bg, rgb(255 255 255 / 13%)));
  --xs-dropdown-bg: var(--home-bg-3, var(--background-color-2, #1f1f29));
  --xs-dropdown-border: var(--home-border-strong, var(--border-color, rgb(255 255 255 / 18%)));
  --xs-text: var(--home-text, var(--text-color, #edf6ff));
  --xs-muted: var(--home-muted, var(--secondary-color, #888));
  --xs-accent: var(--home-text, var(--text-color, #edf6ff));
  --xs-group-bg: rgb(255 255 255 / 6%);
  --xs-option-hover: rgba(91, 159, 255, 0.12);
  --xs-option-active: rgba(91, 159, 255, 0.18);
  --xs-selected-bg: rgba(91, 159, 255, 0.16);
  --xs-shadow: 0 24px 56px rgb(2 8 23 / 48%);
}

body.dark .x-select {
  --xs-radius: var(--border-radius, 10px);
  --xs-border: var(--border-color, #555);
  --xs-border-hover: rgba(255, 255, 255, 0.28);
  --xs-border-focus: var(--brand-primary, #5b9fff);
  --xs-ring: rgba(91, 159, 255, 0.2);
  --xs-trigger-bg: var(--box-bg, #262632);
  --xs-dropdown-bg: var(--background-color-2, #1f1f29);
  --xs-dropdown-border: var(--border-color, #555);
  --xs-text: var(--text-color, rgba(255, 255, 255, 0.9));
  --xs-muted: var(--secondary-color, #888);
  --xs-accent: var(--brand-primary, #5b9fff);
  --xs-group-bg: rgba(255, 255, 255, 0.05);
  --xs-option-hover: rgba(91, 159, 255, 0.12);
  --xs-option-active: rgba(91, 159, 255, 0.2);
  --xs-selected-bg: rgba(91, 159, 255, 0.18);
  --xs-shadow: var(--shadow, 2px 4px 18px rgba(0, 0, 0, 0.6));
}

.x-select.is-open {
  z-index: 1;
}

.x-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.x-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  box-sizing: border-box;
  width: 100%;
  height: 3.75rem;
  min-height: 3.75rem;
  max-height: 3.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--xs-border);
  border-radius: var(--xs-radius);
  background: var(--xs-trigger-bg);
  color: var(--xs-text);
  text-align: right;
  cursor: pointer;
  font-family: var(--xs-font) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.x-select__trigger:hover {
  border-color: var(--xs-border-hover);
}

.x-select__trigger:focus-visible,
.x-select.is-open .x-select__trigger {
  outline: none;
  border-color: var(--xs-border-focus);
  box-shadow: 0 0 0 4px var(--xs-ring);
}

.x-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(0.94rem + 1px);
  font-weight: 700;
}

.x-select__trigger.is-placeholder .x-select__value {
  color: var(--xs-muted);
  font-weight: 600;
}

/* بسته: ◀ — باز: ▼ */
.x-select__chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border: none;
  border-left: 2px solid var(--xs-muted);
  border-bottom: 2px solid var(--xs-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.x-select.is-open .x-select__chevron {
  border-left: none;
  border-right: 2px solid var(--xs-muted);
  border-bottom: 2px solid var(--xs-muted);
  transform: rotate(45deg);
}

/* متغیرهای تم روی خود dropdown — برای حالت portal در body */
.x-select__dropdown {
  --xs-radius: 1rem;
  --xs-border: var(--home-border, rgb(15 23 42 / 10%));
  --xs-border-hover: var(--home-border-strong, rgb(15 23 42 / 16%));
  --xs-border-focus: rgb(15 23 42 / 22%);
  --xs-ring: rgb(15 23 42 / 7%);
  --xs-trigger-bg: #ffffff;
  --xs-dropdown-bg: #ffffff;
  --xs-dropdown-border: rgb(15 23 42 / 12%);
  --xs-text: var(--home-heading, #07111f);
  --xs-muted: var(--home-muted, #64748b);
  --xs-accent: var(--home-heading, #07111f);
  --xs-shadow: 0 20px 48px rgb(15 23 42 / 12%), 0 2px 8px rgb(15 23 42 / 6%);
  --xs-group-bg: rgb(15 23 42 / 4%);
  --xs-option-hover: rgb(15 23 42 / 5%);
  --xs-option-active: rgb(15 23 42 / 8%);
  --xs-selected-bg: rgb(15 23 42 / 6%);
  --xs-font: var(--home-font, x-font-normal, "Yekan Bakh FaNum", Tahoma, system-ui, sans-serif);
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.4rem);
  z-index: 10200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--xs-dropdown-border);
  border-radius: calc(var(--xs-radius) + 0.1rem);
  background: var(--xs-dropdown-bg);
  color: var(--xs-text);
  font-family: var(--xs-font) !important;
  box-shadow: var(--xs-shadow);
}

.x-select__dropdown:not([hidden]) {
  display: flex;
  animation: x-select-drop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.x-select__dropdown[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-home-theme=dark] .x-select__dropdown,
body.dark .x-select__dropdown {
  --xs-border: var(--home-border, rgb(255 255 255 / 14%));
  --xs-border-hover: var(--home-border-strong, rgb(255 255 255 / 22%));
  --xs-border-focus: var(--brand-primary, rgb(255 255 255 / 28%));
  --xs-ring: rgba(91, 159, 255, 0.18);
  --xs-trigger-bg: var(--home-surface-strong, var(--box-bg, rgb(255 255 255 / 13%)));
  --xs-dropdown-bg: var(--home-bg-3, var(--background-color-2, #1f1f29));
  --xs-dropdown-border: var(--home-border-strong, var(--border-color, rgb(255 255 255 / 18%)));
  --xs-text: var(--home-text, var(--text-color, #edf6ff));
  --xs-muted: var(--home-muted, var(--secondary-color, #888));
  --xs-accent: var(--home-text, var(--text-color, #edf6ff));
  --xs-group-bg: rgb(255 255 255 / 6%);
  --xs-option-hover: rgba(91, 159, 255, 0.12);
  --xs-option-active: rgba(91, 159, 255, 0.18);
  --xs-selected-bg: rgba(91, 159, 255, 0.16);
  --xs-shadow: 0 24px 56px rgb(2 8 23 / 48%);
}

body.dark .x-select__dropdown {
  --xs-radius: var(--border-radius, 10px);
  --xs-border: var(--border-color, #555);
  --xs-border-hover: rgba(255, 255, 255, 0.28);
  --xs-border-focus: var(--brand-primary, #5b9fff);
  --xs-ring: rgba(91, 159, 255, 0.2);
  --xs-trigger-bg: var(--box-bg, #262632);
  --xs-dropdown-bg: var(--background-color-2, #1f1f29);
  --xs-dropdown-border: var(--border-color, #555);
  --xs-text: var(--text-color, rgba(255, 255, 255, 0.9));
  --xs-muted: var(--secondary-color, #888);
  --xs-accent: var(--brand-primary, #5b9fff);
  --xs-group-bg: rgba(255, 255, 255, 0.05);
  --xs-option-hover: rgba(91, 159, 255, 0.12);
  --xs-option-active: rgba(91, 159, 255, 0.2);
  --xs-selected-bg: rgba(91, 159, 255, 0.18);
  --xs-shadow: var(--shadow, 2px 4px 18px rgba(0, 0, 0, 0.6));
}

.x-select__dropdown--portal {
  position: fixed;
  inset-inline: auto;
  top: auto;
}

.x-select__dropdown--portal .x-select__list {
  flex: 1;
  min-height: 0;
}

@keyframes x-select-drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.x-select__search {
  flex: 0 0 auto;
  padding: 0.55rem 0.55rem 0.4rem;
  border-bottom: 1px solid var(--xs-border);
  background: var(--xs-group-bg);
}

.x-select__search-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--xs-border);
  border-radius: 0.75rem;
  background: var(--xs-trigger-bg);
  color: var(--xs-text);
  font: inherit;
  font-family: var(--xs-font) !important;
  font-size: calc(0.86rem + 1px);
}

.x-select__search-input::placeholder {
  color: var(--xs-muted);
}

.x-select__search-input:focus {
  outline: none;
  border-color: var(--xs-border-focus);
  box-shadow: 0 0 0 3px var(--xs-ring);
}

.x-select__list {
  flex: 1 1 auto;
  max-height: min(18rem, 54vh);
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  list-style: none;
}

.x-select__group {
  margin: 0.35rem 0 0.15rem;
  padding: 0.55rem 0.75rem 0.35rem;
  border-radius: 0.65rem;
  background: var(--xs-group-bg);
  color: var(--xs-text);
  font-size: calc(0.8rem + 1px);
  font-weight: 800;
  line-height: 1.35;
}

.x-select__group:first-child {
  margin-top: 0.15rem;
}

.x-select__option {
  padding: 0.62rem 0.75rem;
  border-radius: 0.7rem;
  color: var(--xs-text);
  font-family: var(--xs-font) !important;
  font-size: calc(0.9rem + 1px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.x-select__option--nested {
  margin-inline-start: 0.35rem;
  padding: 0.48rem 0.7rem 0.48rem 0.85rem;
  font-size: calc(0.8rem + 1px);
  font-weight: 600;
  color: var(--xs-muted);
}

html[data-home-theme=dark] .x-select__option--nested,
body.dark .x-select__option--nested {
  color: var(--xs-muted);
}

.x-select__option:hover,
.x-select__option.is-active {
  background: var(--xs-option-hover);
  color: var(--xs-text);
}

.x-select__option.is-active {
  background: var(--xs-option-active);
}

.x-select__option.is-selected {
  background: var(--xs-selected-bg);
  color: var(--xs-text);
  font-weight: 800;
}

.x-select__option.is-selected::before {
  content: "✓";
  display: inline-block;
  margin-inline-end: 0.35rem;
  font-size: 0.75em;
  color: var(--xs-muted);
}

.x-select__option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.x-select__empty {
  padding: 0.9rem 0.75rem;
  color: var(--xs-muted);
  text-align: center;
  font-size: calc(0.84rem + 1px);
}

.home-search .x-select,
.search-hero__form .x-select {
  max-width: 100%;
}

.home-search .x-select__trigger,
.search-hero__form .x-select__trigger {
  height: 3.75rem;
  min-height: 3.75rem;
  max-height: 3.75rem;
  background: #ffffff;
}

html[data-home-theme=dark] .home-search .x-select__trigger,
html[data-home-theme=dark] .search-hero__form .x-select__trigger {
  background: var(--home-surface-strong, rgba(255, 255, 255, 0.13));
}

.home-search:has(.x-select.is-open) {
  z-index: 30;
}

@media (max-width: 900px) {
  .x-select__dropdown--portal {
    inset-inline: 1rem !important;
    width: auto !important;
    max-width: calc(100vw - 2rem);
  }
  .x-select__list {
    max-height: min(15rem, 48vh);
  }
}
/* Multiple mode */
.x-select--multiple .x-select__trigger {
  height: auto;
  min-height: 3.75rem;
  max-height: none;
  align-items: flex-start;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.x-select__values {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding-top: 4px;
}

.x-select__placeholder-text {
  color: var(--xs-muted);
  font-size: calc(0.94rem + 1px);
  font-weight: 600;
}

.x-select__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  border-radius: 0.55rem;
  background: var(--xs-selected-bg);
  color: var(--xs-text);
  font-size: calc(0.78rem + 1px);
  font-weight: 700;
  line-height: 1.35;
}

.x-select__chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-select__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--xs-muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.x-select__chip-remove:hover {
  background: var(--xs-option-hover);
  color: var(--xs-text);
}

/* Admin dashboard theme */
body.admin-dashboard-body:not(.admin-dashboard-theme-light) .x-select,
body.admin-dashboard-body:not(.admin-dashboard-theme-light) .x-select__dropdown {
  --xs-radius: 9px;
  --xs-border: rgba(148, 163, 184, 0.34);
  --xs-border-hover: rgba(148, 163, 184, 0.48);
  --xs-border-focus: #60a5fa;
  --xs-ring: rgba(59, 130, 246, 0.22);
  --xs-trigger-bg: #334155;
  --xs-dropdown-bg: #1e293b;
  --xs-dropdown-border: rgba(148, 163, 184, 0.34);
  --xs-text: #f1f5f9;
  --xs-muted: #94a3b8;
  --xs-group-bg: rgba(15, 23, 42, 0.55);
  --xs-option-hover: rgba(59, 130, 246, 0.12);
  --xs-option-active: rgba(59, 130, 246, 0.2);
  --xs-selected-bg: rgba(59, 130, 246, 0.18);
  --xs-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

body.admin-dashboard-body.admin-dashboard-theme-light .x-select,
body.admin-dashboard-body.admin-dashboard-theme-light .x-select__dropdown {
  --xs-radius: 9px;
  --xs-border: #cbd5e1;
  --xs-border-hover: #94a3b8;
  --xs-border-focus: #3b82f6;
  --xs-ring: rgba(59, 130, 246, 0.12);
  --xs-trigger-bg: #ffffff;
  --xs-dropdown-bg: #ffffff;
  --xs-dropdown-border: #e2e8f0;
  --xs-text: #1e293b;
  --xs-muted: #64748b;
  --xs-group-bg: #f8fafc;
  --xs-option-hover: #f1f5f9;
  --xs-option-active: #e2e8f0;
  --xs-selected-bg: rgba(59, 130, 246, 0.1);
  --xs-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

/* همه سلکت‌های داشبورد — اندازه و ظاهر یکسان با input */
body.admin-dashboard-body .x-select__trigger {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

body.admin-dashboard-body .x-select--multiple .x-select__trigger {
  height: auto;
  min-height: 40px;
  max-height: none;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 4px;
}

body.admin-dashboard-body .x-select__value,
body.admin-dashboard-body .x-select__placeholder-text {
  font-size: 14px;
  font-weight: 400;
}

body.admin-dashboard-body .x-select__chevron {
  width: 0.42rem;
  height: 0.42rem;
}

body.admin-dashboard-body .x-select__chip {
  padding: 0.12rem 0.3rem 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

body.admin-dashboard-body .x-select__search {
  padding: 0.4rem 0.45rem 0.35rem;
}

body.admin-dashboard-body .x-select__search-input {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 13px;
}

body.admin-dashboard-body .x-select__option {
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

body.admin-dashboard-body .x-select__list {
  max-height: min(14rem, 48vh);
  padding: 0.25rem;
}

/* سلکت‌های کوچک (form-control-sm، جدول واریانت‌ها) */
body.admin-dashboard-body .x-select:has(select.form-control-sm) .x-select__trigger,
body.admin-dashboard-body .variant-pricing-card-wrapper .x-select__trigger,
body.admin-dashboard-body .provider-dialog-content .x-select__trigger {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

body.admin-dashboard-body .x-select:has(select.form-control-sm) .x-select__value,
body.admin-dashboard-body .x-select:has(select.form-control-sm) .x-select__placeholder-text,
body.admin-dashboard-body .variant-pricing-card-wrapper .x-select__value,
body.admin-dashboard-body .variant-pricing-card-wrapper .x-select__placeholder-text {
  font-size: 13px;
}

body.admin-dashboard-body .variant-pricing-card-wrapper .x-select--multiple .x-select__trigger {
  min-height: 36px;
}

/* صفحه صفات/قیمت محصول و درخت واریانت */
.pav-page .x-select,
.pav-page .x-select__dropdown,
.pav-tree-page .x-select,
.pav-tree-page .x-select__dropdown,
.variant-pricing-card-wrapper .x-select,
.variant-pricing-card-wrapper .x-select__dropdown {
  --xs-trigger-bg: rgba(51, 65, 85, 0.9);
  --xs-border: rgba(148, 163, 184, 0.35);
  --xs-text: #e2e8f0;
}

body.admin-dashboard-body.admin-dashboard-theme-light .pav-page .x-select,
body.admin-dashboard-body.admin-dashboard-theme-light .pav-page .x-select__dropdown,
body.admin-dashboard-body.admin-dashboard-theme-light .pav-tree-page .x-select,
body.admin-dashboard-body.admin-dashboard-theme-light .pav-tree-page .x-select__dropdown,
body.admin-dashboard-body.admin-dashboard-theme-light .variant-pricing-card-wrapper .x-select,
body.admin-dashboard-body.admin-dashboard-theme-light .variant-pricing-card-wrapper .x-select__dropdown {
  --xs-radius: 9px;
  --xs-border: #cbd5e1;
  --xs-border-hover: #94a3b8;
  --xs-border-focus: #3b82f6;
  --xs-ring: rgba(59, 130, 246, 0.12);
  --xs-trigger-bg: #ffffff;
  --xs-dropdown-bg: #ffffff;
  --xs-dropdown-border: #e2e8f0;
  --xs-text: #1e293b;
  --xs-muted: #64748b;
  --xs-group-bg: #f8fafc;
  --xs-option-hover: #f1f5f9;
  --xs-option-active: #e2e8f0;
  --xs-selected-bg: rgba(59, 130, 246, 0.1);
  --xs-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.pav-tree-page #assignSection .x-select__trigger,
.pav-tree-page #x_addNodeModal .x-select__trigger {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.pav-tree-page #assignSection .x-select--multiple .x-select__trigger {
  min-height: 40px;
}

#x_addNodeModal .x-select,
#x_addNodeModal .x-select__dropdown {
  --xs-selected-bg: rgba(51, 65, 85, 0.95);
  --xs-trigger-bg: rgba(30, 41, 59, 0.9);
  --xs-border: rgba(148, 163, 184, 0.32);
}

body.admin-dashboard-body.admin-dashboard-theme-light #x_addNodeModal .x-select,
body.admin-dashboard-body.admin-dashboard-theme-light #x_addNodeModal .x-select__dropdown {
  --xs-selected-bg: var(--lt-muted);
  --xs-trigger-bg: #ffffff;
  --xs-border: var(--lt-input-border);
}

:root.admin-dashboard-theme-light > body.admin-dashboard-theme-light html[data-home-theme=dark] .home-search .x-select__trigger, :root.admin-dashboard-theme-light > body.admin-dashboard-theme-light html[data-home-theme=dark] .search-hero__form .x-select__trigger {
  background: var(--home-surface-strong, var(--lt-muted));
}

.product-live-streams {
  --pls-section-bg: var(--header-surface);
  --pls-section-border: var(--header-border);
  --pls-card-bg: var(--header-surface-solid);
  --pls-card-border: var(--header-border);
  --pls-card-border-hover: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.35);
  --pls-card-shadow-hover: var(--header-shadow, 0 12px 26px rgba(28, 35, 51, 0.1));
  --pls-text-muted: var(--header-muted, var(--secondary-color, #5f6b82));
  --pls-spinner-track: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.14);
  --pls-spinner-head: var(--header-accent, var(--brand-primary, #5b7cfa));
  --pls-more-dash: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.35);
  --pls-meta-badge-bg: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.1);
  --pls-meta-badge-text: var(--header-fg, var(--text-color, #1c2333));
  --pls-meta-badge-border: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.22);
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  background: var(--pls-section-bg);
  border: 1px solid var(--pls-section-border);
  box-shadow: var(--header-shadow, var(--shadow, 0 1px 2px rgba(28, 35, 51, 0.05)));
  backdrop-filter: blur(var(--header-blur, 32px)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--header-blur, 32px)) saturate(1.5);
  color: var(--header-fg, var(--text-color));
}

body.dark .product-live-streams {
  --pls-section-bg: var(--header-surface);
  --pls-section-border: var(--header-border);
  --pls-card-bg: var(--header-surface-solid);
  --pls-card-border: var(--header-border);
  --pls-card-border-hover: rgba(91, 159, 255, 0.32);
  --pls-card-shadow-hover: var(--header-shadow-strong, 0 12px 28px rgba(0, 0, 0, 0.22));
  --pls-text-muted: var(--header-muted, rgba(255, 255, 255, 0.55));
  --pls-spinner-track: rgba(255, 255, 255, 0.12);
  --pls-spinner-head: var(--header-accent, #6366f1);
  --pls-more-dash: rgba(255, 255, 255, 0.28);
  --pls-meta-badge-bg: rgba(239, 68, 68, 0.16);
  --pls-meta-badge-text: var(--header-fg, #fff);
  --pls-meta-badge-border: rgba(239, 68, 68, 0.32);
  box-shadow: var(--header-shadow-strong);
}

.product-live-streams-mount {
  min-height: 0;
}

.product-live-streams__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--header-fg, inherit);
  font-size: 0.88rem;
  transition: opacity 0.15s, color 0.15s;
}
.product-live-streams__more span {
  border-bottom: 1px dashed var(--pls-more-dash);
}
.product-live-streams__more:hover {
  opacity: 0.85;
}

.product-live-streams__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.product-live-streams__badge[hidden] {
  display: none;
}

.product-live-streams__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pls-meta-badge-text);
  background: var(--pls-meta-badge-bg);
  border: 1px solid var(--pls-meta-badge-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.product-live-streams__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pls-pulse 1.2s ease-in-out infinite;
}

@keyframes pls-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.product-live-streams__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.875rem;
}

.product-live-streams__swiper {
  margin-inline: -0.35rem;
  overflow: hidden;
}

.product-live-streams__swiper .swiper-slide {
  height: auto;
}

.product-live-streams__swiper--always .swiper-slide {
  width: auto;
  box-sizing: border-box;
}

.product-live-streams__swiper--always:not(.swiper-initialized) .swiper-wrapper {
  gap: 12px;
}
@media (min-width: 768px) {
  .product-live-streams__swiper--always:not(.swiper-initialized) .swiper-wrapper {
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .product-live-streams__swiper--always:not(.swiper-initialized) .swiper-wrapper {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .product-live-streams__swiper {
    margin-inline: -0.5rem;
    padding-inline: 0.15rem;
    overflow: hidden;
    touch-action: pan-x;
  }
  .product-live-streams__swiper .swiper-slide {
    width: 62vw;
    max-width: 260px;
  }
}
@media (min-width: 769px) {
  .product-live-streams__swiper:not(.product-live-streams__swiper--always) {
    margin-inline: 0;
    overflow: visible;
  }
  .product-live-streams__swiper:not(.product-live-streams__swiper--always) .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    transform: none !important;
    width: 100% !important;
  }
  .product-live-streams__swiper:not(.product-live-streams__swiper--always) .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }
}
@media (min-width: 992px) {
  .product-live-streams__swiper:not(.product-live-streams__swiper--always) .swiper-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.product-live-streams__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.product-live-streams__card {
  background: var(--pls-card-bg);
  border: 1px solid var(--pls-card-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.product-live-streams__card:hover,
.product-live-streams__card.is-active {
  border-color: var(--pls-card-border-hover);
  background: var(--header-hover, var(--pls-card-bg));
  transform: translateY(-1px);
  box-shadow: var(--pls-card-shadow-hover);
}

.product-live-streams__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.product-live-streams__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-live-streams__thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 2rem;
}

.product-live-streams__live-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.product-live-streams__viewers {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.product-live-streams__game {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  max-width: calc(100% - 3.5rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.product-live-streams__player-slot {
  min-height: 0;
}

.product-live-streams__player-slot:has(.product-live-streams__player-wrap.is-open) {
  aspect-ratio: 16/9;
  margin-top: 1rem;
}

.product-live-streams__player-wrap {
  display: none;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.product-live-streams__player-wrap.is-open {
  display: block;
}

.product-live-streams__video-shell {
  position: relative;
  background: #000;
}

.product-live-streams__video-shell:fullscreen,
.product-live-streams__video-shell:-webkit-full-screen,
.product-live-streams__player-wrap:fullscreen,
.product-live-streams__player-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}
.product-live-streams__video-shell:fullscreen video,
.product-live-streams__video-shell:-webkit-full-screen video,
.product-live-streams__player-wrap:fullscreen video,
.product-live-streams__player-wrap:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  aspect-ratio: auto;
  object-fit: contain;
}
.product-live-streams__video-shell:fullscreen .product-live-streams__controls,
.product-live-streams__video-shell:-webkit-full-screen .product-live-streams__controls,
.product-live-streams__player-wrap:fullscreen .product-live-streams__controls,
.product-live-streams__player-wrap:-webkit-full-screen .product-live-streams__controls {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}

.product-live-streams__video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
}

.product-live-streams__controls {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.75rem 0.55rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}

.product-live-streams__live-btn {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  border: none;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.product-live-streams__live-btn.is-behind {
  background: rgba(255, 255, 255, 0.22);
  animation: pls-live-pulse 1.4s ease-in-out infinite;
}

.product-live-streams__live-btn.is-at-live {
  cursor: default;
}

@keyframes pls-live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
.product-live-streams__ctrl-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}

.product-live-streams__ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.product-live-streams__record-btn.is-recording {
  background: rgba(239, 68, 68, 0.85);
  animation: pls-rec-pulse 1.2s ease-in-out infinite;
}

.product-live-streams__vod-save-btn {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.product-live-streams__vod-save-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.product-live-streams__vod-gallery-btn {
  position: absolute;
  top: 12px;
  inset-inline-start: calc(12px + 1.85rem + 8px);
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.product-live-streams__vod-gallery-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@keyframes pls-rec-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
.product-live-streams__quality-btn {
  --pls-quality-accent: #3b82f6;
  margin-inline-start: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.product-live-streams__quality-btn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pls-quality-accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.65);
  flex-shrink: 0;
}

.product-live-streams__quality-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.product-live-streams__quality-btn.is-hidden {
  display: none;
}

.product-live-streams__quality-dialog {
  --pls-quality-accent: #3b82f6;
  --pls-quality-panel-bg: rgba(12, 14, 20, 0.94);
  --pls-quality-panel-border: rgba(255, 255, 255, 0.1);
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-live-streams__quality-dialog[hidden] {
  display: none;
}

.product-live-streams__quality-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-live-streams__quality-dialog.is-open .product-live-streams__quality-backdrop {
  opacity: 1;
}

.product-live-streams__quality-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 248px);
  max-height: min(72%, 340px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--pls-quality-panel-bg);
  border: 1px solid var(--pls-quality-panel-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(8px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.product-live-streams__quality-dialog.is-open .product-live-streams__quality-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.product-live-streams__quality-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.product-live-streams__quality-panel-title {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-live-streams__quality-panel-sub {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  line-height: 1.3;
}

.product-live-streams__quality-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  overflow: auto;
}

.product-live-streams__quality-item + .product-live-streams__quality-item {
  margin-top: 0.28rem;
}

.product-live-streams__quality-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.product-live-streams__quality-option-label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.product-live-streams__quality-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.product-live-streams__quality-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-live-streams__quality-option.is-active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.34);
  color: #fff;
}

.product-live-streams__quality-option.is-active .product-live-streams__quality-option-label {
  font-weight: 700;
}

.product-live-streams__quality-option.is-active .product-live-streams__quality-option-dot {
  background: var(--pls-quality-accent);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.75);
  transform: scale(1.05);
}

.product-live-streams__player-bar {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: rgba(15, 15, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.product-live-streams__player-bar-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.15s;
}

.product-live-streams__player-bar-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.product-live-streams__player-close {
  font-size: 1.15rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .product-live-streams__player-wrap.is-docked {
    position: fixed;
    z-index: 10070;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    width: min(380px, 100vw - 2.5rem);
    margin-top: 0;
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: pls-dock-in 0.22s ease-out;
    transition: bottom 0.18s ease-out, opacity 0.18s ease-out, visibility 0.18s ease-out;
  }
  .product-live-streams__player-wrap.is-docked.is-docked--footer-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .product-live-streams__player-wrap.is-docked .product-live-streams__player-bar {
    display: flex;
  }
  .product-live-streams__player-wrap.is-docked video {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
  }
  .product-live-streams__player-wrap.is-docked .product-live-streams__controls {
    padding-top: 1.25rem;
  }
}
@keyframes pls-dock-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.product-live-streams__player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.product-live-streams__loading,
.product-live-streams__empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--pls-text-muted);
  font-size: 0.9rem;
}

.product-live-streams__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--pls-spinner-track);
  border-top-color: var(--pls-spinner-head);
  border-radius: 50%;
  animation: pls-spin 0.8s linear infinite;
}

@keyframes pls-spin {
  to {
    transform: rotate(360deg);
  }
}
.product-live-streams__empty {
  color: var(--pls-text-muted);
}

.product-live-streams-mount:not(.is-hidden) {
  display: block;
}

.stream-recording-save-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}
.stream-recording-save-panel[hidden] {
  display: none !important;
}

.stream-recording-save-panel__dialog {
  width: min(100%, 22rem);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.stream-recording-save-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.stream-recording-save-panel__meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.stream-recording-save-panel__question {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}

.stream-recording-save-panel__progress-wrap {
  margin-bottom: 0.35rem;
}

.stream-recording-save-panel__progress-track {
  width: 100%;
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.stream-recording-save-panel__progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.15s ease;
}

.stream-recording-save-panel__progress-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.stream-recording-save-panel__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.stream-recording-save-panel__btn {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.stream-recording-save-panel__btn--yes {
  background: #22c55e;
  color: #052e16;
}

.stream-recording-save-panel__btn--no {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.stream-recording-save-panel__btn--gallery {
  background: #6366f1;
  color: #eef2ff;
}

.stream-recording-save-panel__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stream-gallery-panel__facts {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stream-gallery-panel__facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.stream-gallery-panel__facts li strong {
  color: #f8fafc;
  font-weight: 600;
}

.stream-gallery-panel__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.stream-gallery-panel__btn {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.stream-gallery-panel__btn--primary {
  background: #22c55e;
  color: #052e16;
}

.stream-gallery-panel__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.stream-gallery-panel__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════════════
   نمای اختصاصی بخش استریم زنده در صفحهٔ محصول
   همه‌چیز زیر .product-live-streams اسکوپ شده تا کارت‌های صفحهٔ اصلی دست‌نخورده بماند.
   ══════════════════════════════════════════════════════════════════════════ */
.product-live-streams--shell {
  --pls-live: #ef4444;
  --pls-live-rgb: 239, 68, 68;
  position: relative;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: calc(var(--border-radius) + 4px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(var(--pls-live-rgb), 0.09), transparent 46%), radial-gradient(120% 150% at 0% 0%, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.1), transparent 52%), var(--pls-section-bg);
}

.product-live-streams__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.product-live-streams__orb {
  position: absolute;
  top: -55px;
  inset-inline-start: -40px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--pls-live-rgb), 0.28), transparent 68%);
  filter: blur(28px);
  opacity: 0.75;
}

body.dark .product-live-streams__orb {
  opacity: 0.55;
}

/* ── هدر ─────────────────────────────────────────────────────────────── */
.product-live-streams--shell .product-live-streams__header {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.product-live-streams__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.product-live-streams__pulse {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-inline-end: 0.15rem;
  border-radius: 50%;
  background: var(--pls-live);
  box-shadow: 0 0 0 3px rgba(var(--pls-live-rgb), 0.18);
}
.product-live-streams__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--pls-live-rgb), 0.55);
  animation: pls-ring 1.9s ease-out infinite;
}

@keyframes pls-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}
.product-live-streams__heading-text {
  min-width: 0;
}

.product-live-streams__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--header-fg, var(--text-color));
}

.product-live-streams__subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--pls-text-muted);
}

.product-live-streams__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.product-live-streams--shell .product-live-streams__badge {
  background: rgba(var(--pls-live-rgb), 0.12);
  border-color: rgba(var(--pls-live-rgb), 0.26);
  color: var(--header-fg, var(--text-color));
}

.product-live-streams--shell .product-live-streams__more {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--pls-card-border);
  background: var(--pls-card-bg);
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.product-live-streams--shell .product-live-streams__more span {
  border-bottom: none;
}
.product-live-streams--shell .product-live-streams__more svg {
  transition: transform 0.18s;
}
.product-live-streams--shell .product-live-streams__more:hover {
  opacity: 1;
  border-color: var(--pls-card-border-hover);
  background: var(--header-hover, var(--pls-card-bg));
}
.product-live-streams--shell .product-live-streams__more:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 560px) {
  .product-live-streams--shell {
    padding: 1rem 0.9rem 1.1rem;
  }
  .product-live-streams__title {
    font-size: 0.94rem;
  }
  .product-live-streams__subtitle {
    font-size: 0.72rem;
  }
  .product-live-streams--shell .product-live-streams__more span {
    display: none;
  }
  .product-live-streams__subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}
/* ── کارت‌ها ──────────────────────────────────────────────────────────── */
.product-live-streams--shell .product-live-streams-mount {
  position: relative;
  z-index: 1;
}

.product-live-streams .product-live-streams__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  transition: border-color 0.22s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s, background 0.22s;
}

.product-live-streams .product-live-streams__card:hover,
.product-live-streams .product-live-streams__card:focus-visible,
.product-live-streams .product-live-streams__card.is-active {
  transform: translateY(-4px);
  border-color: var(--pls-card-border-hover);
  box-shadow: var(--pls-card-shadow-hover);
}

.product-live-streams .product-live-streams__card:focus-visible {
  outline: 2px solid var(--header-accent, var(--brand-primary, #5b7cfa));
  outline-offset: 2px;
}

.product-live-streams .product-live-streams__card.is-active {
  border-color: rgba(var(--pls-live-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--pls-live-rgb), 0.35), var(--pls-card-shadow-hover);
}

.product-live-streams .product-live-streams__thumb img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-live-streams .product-live-streams__card:hover .product-live-streams__thumb img {
  transform: scale(1.06);
}

.product-live-streams__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.06) 42%, transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}

.product-live-streams__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(var(--pls-live-rgb), 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.product-live-streams__play svg {
  margin-inline-start: 2px;
}

.product-live-streams .product-live-streams__card:hover .product-live-streams__play,
.product-live-streams .product-live-streams__card:focus-visible .product-live-streams__play,
.product-live-streams .product-live-streams__card.is-active .product-live-streams__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-live-streams .product-live-streams__live-tag {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: rgba(var(--pls-live-rgb), 0.95);
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(var(--pls-live-rgb), 0.35);
}
.product-live-streams .product-live-streams__live-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pls-pulse 1.2s ease-in-out infinite;
}

.product-live-streams .product-live-streams__viewers {
  z-index: 2;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.7rem;
  line-height: 1.45;
}

.product-live-streams__uptime {
  position: absolute;
  z-index: 2;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.product-live-streams__body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem 0.7rem;
  min-width: 0;
}

.product-live-streams__avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.9), rgba(var(--pls-live-rgb), 0.85));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.product-live-streams__body-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.product-live-streams__channel {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--header-fg, var(--text-color));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-live-streams__stream-title {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--pls-text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── اسکلتون بارگذاری ─────────────────────────────────────────────────── */
.product-live-streams__skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.875rem;
}

.product-live-streams__skeleton-card {
  border: 1px solid var(--pls-card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--pls-card-bg);
}

.product-live-streams__skeleton-thumb {
  aspect-ratio: 16/9;
}

.product-live-streams__skeleton-body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem 0.7rem;
}

.product-live-streams__skeleton-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.product-live-streams__skeleton-lines {
  flex: 1;
  height: 0.9rem;
  border-radius: 6px;
}

.product-live-streams__skeleton-thumb,
.product-live-streams__skeleton-avatar,
.product-live-streams__skeleton-lines {
  background: linear-gradient(100deg, var(--pls-spinner-track) 30%, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.06) 45%, var(--pls-spinner-track) 60%);
  background-size: 260% 100%;
  animation: pls-shimmer 1.35s ease-in-out infinite;
}

body.dark .product-live-streams__skeleton-thumb,
body.dark .product-live-streams__skeleton-avatar,
body.dark .product-live-streams__skeleton-lines {
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.05) 60%);
}

@keyframes pls-shimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -40% 0;
  }
}
@media (max-width: 768px) {
  .product-live-streams__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ── حالت خالی ────────────────────────────────────────────────────────── */
.product-live-streams--shell .product-live-streams__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1rem;
  border: 1px dashed var(--pls-card-border);
  border-radius: 14px;
  background: var(--pls-card-bg);
}

.product-live-streams__empty-icon {
  font-size: 1.6rem;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .product-live-streams__pulse::after,
  .product-live-streams .product-live-streams__live-tag::before,
  .product-live-streams__skeleton-thumb,
  .product-live-streams__skeleton-avatar,
  .product-live-streams__skeleton-lines {
    animation: none;
  }
  .product-live-streams .product-live-streams__card,
  .product-live-streams .product-live-streams__thumb img,
  .product-live-streams__play {
    transition: none;
  }
  .product-live-streams .product-live-streams__card:hover {
    transform: none;
  }
  .product-live-streams .product-live-streams__card:hover .product-live-streams__thumb img {
    transform: none;
  }
}
#shop-container .origin-pagination .shop-pagination-nav,
#shop-product-list-container .origin-pagination .shop-pagination-nav,
.gv-page-wrap .origin-pagination .shop-pagination-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}
#shop-container .origin-pagination .shop-pagination,
#shop-product-list-container .origin-pagination .shop-pagination,
.gv-page-wrap .origin-pagination .shop-pagination {
  gap: 8px;
}
#shop-container .origin-pagination .shop-pagination .page-item .page-link,
#shop-product-list-container .origin-pagination .shop-pagination .page-item .page-link,
.gv-page-wrap .origin-pagination .shop-pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
#shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
#shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
.gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link {
  color: var(--text-color-grey, var(--text-color));
  background: var(--header-background, var(--navigation-background, var(--box-background-full)));
  border: 1px solid var(--menu-border-color, var(--border-color));
  box-shadow: var(--shadow, none);
}
#shop-container .origin-pagination .shop-pagination .page-item.active .page-link,
#shop-product-list-container .origin-pagination .shop-pagination .page-item.active .page-link,
.gv-page-wrap .origin-pagination .shop-pagination .page-item.active .page-link {
  background: var(--menu-item-active-bg, rgba(91, 124, 250, 0.14));
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary) !important;
  box-shadow: 0 0 0 1px rgba(91, 124, 250, 0.12);
}
#shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
#shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  color: var(--text-color);
  background: var(--menu-item-hover-bg, rgba(91, 124, 250, 0.09));
  border-color: rgba(91, 124, 250, 0.35);
}
#shop-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
#shop-product-list-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
.gv-page-wrap .origin-pagination .shop-pagination .page-item.disabled .page-link {
  color: var(--text-color-grey, var(--text-color));
  background: var(--header-background, var(--navigation-background, var(--box-background-full)));
  border: 1px solid var(--menu-border-color, var(--border-color));
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
#shop-container .origin-pagination .shop-pagination .shop-pagination__nav,
#shop-product-list-container .origin-pagination .shop-pagination .shop-pagination__nav,
.gv-page-wrap .origin-pagination .shop-pagination .shop-pagination__nav {
  min-width: 56px;
  font-weight: 600;
  font-size: 13px;
}

body.dark #shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
body.dark #shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
body.dark .gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(25, 30, 50, 0.92);
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
body.dark #shop-container .origin-pagination .shop-pagination .page-item.active .page-link,
body.dark #shop-product-list-container .origin-pagination .shop-pagination .page-item.active .page-link,
body.dark .gv-page-wrap .origin-pagination .shop-pagination .page-item.active .page-link {
  background: rgba(91, 159, 255, 0.16);
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  box-shadow: 0 0 0 1px rgba(91, 159, 255, 0.2);
}
body.dark #shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
body.dark #shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
body.dark .gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  color: var(--text-color);
  background: var(--menu-item-hover-bg, rgba(91, 159, 255, 0.12));
  border-color: rgba(91, 159, 255, 0.4);
}
body.dark #shop-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
body.dark #shop-product-list-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
body.dark .gv-page-wrap .origin-pagination .shop-pagination .page-item.disabled .page-link {
  background: rgba(25, 30, 50, 0.72);
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

body:not(.dark) #shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
body:not(.dark) #shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link,
body:not(.dark) .gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link {
  color: var(--text-color-grey, #5f6b82);
  background: var(--box-background-full, #fff);
  border-color: var(--border-color, #d8deea);
}
body:not(.dark) #shop-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
body:not(.dark) #shop-product-list-container .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
body:not(.dark) .gv-page-wrap .origin-pagination .shop-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  color: var(--brand-primary);
}
body:not(.dark) #shop-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
body:not(.dark) #shop-product-list-container .origin-pagination .shop-pagination .page-item.disabled .page-link,
body:not(.dark) .gv-page-wrap .origin-pagination .shop-pagination .page-item.disabled .page-link {
  background: var(--box-background-full, #fff);
  border-color: var(--border-color, #d8deea);
  color: var(--text-color-grey, #8a96a8);
  opacity: 1;
}

.gv-top-player:has(.product-live-streams__player-wrap.is-open) {
  margin-bottom: 1.15rem;
}

.gv-media-grid[data-gv-mode=live] .gv-player-wrap video,
.gv-media-grid[data-gv-mode=vod] .gv-player-wrap video {
  display: none !important;
}

.gv-page-wrap {
  margin-top: 0;
  margin-bottom: 2rem;
}

.gv-page {
  overflow: hidden;
}
.gv-page:has(#gv-stream-catalog-section) {
  overflow: visible;
}

.gv-page:has(.product-live-streams__player-wrap.is-docked) {
  overflow: visible;
}

.gv-hero {
  --gv-accent: var(--brand-primary, #5b7cfa);
  --gv-accent-rgb: var(--brand-primary-rgb, 91, 124, 250);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1.15rem;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: 20px;
  border: 1px solid rgba(var(--gv-accent-rgb), 0.2);
  background: radial-gradient(ellipse 70% 120% at 100% -20%, rgba(var(--gv-accent-rgb), 0.13) 0%, transparent 60%), radial-gradient(ellipse 60% 110% at 0% 120%, rgba(var(--brand-secondary-rgb, 124, 92, 212), 0.1) 0%, transparent 55%), var(--box-background-full, #fff);
  box-shadow: var(--shadow, 0 4px 18px rgba(15, 23, 42, 0.05));
}

.gv-hero--live {
  --gv-accent: #dc2626;
  --gv-accent-rgb: 220, 38, 38;
}

body.dark .gv-hero--live {
  --gv-accent: #ef4444;
  --gv-accent-rgb: 239, 68, 68;
}

.gv-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gv-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
}

.gv-hero__orb--1 {
  inset-inline-end: -60px;
  top: -80px;
  width: 200px;
  height: 200px;
  background: rgba(var(--gv-accent-rgb), 0.5);
}

.gv-hero__orb--2 {
  inset-inline-start: 12%;
  bottom: -110px;
  width: 220px;
  height: 220px;
  background: rgba(var(--brand-secondary-rgb, 124, 92, 212), 0.4);
}

.gv-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(var(--gv-accent-rgb), 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gv-accent-rgb), 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 65% 90% at 85% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 65% 90% at 85% 0%, #000 0%, transparent 70%);
}

body.dark .gv-hero__orb {
  opacity: 0.55;
}

.gv-hero__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  text-align: right;
}

.gv-hero__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--gv-accent);
  background: rgba(var(--gv-accent-rgb), 0.11);
  border: 1px solid rgba(var(--gv-accent-rgb), 0.22);
}

.gv-hero__poster {
  position: relative;
  flex-shrink: 0;
  width: clamp(60px, 9vw, 82px);
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--gv-accent-rgb), 0.3);
  background: rgba(var(--gv-accent-rgb), 0.1);
  box-shadow: 0 10px 24px rgba(var(--gv-accent-rgb), 0.22), 0 2px 6px rgba(15, 23, 42, 0.12);
}
.gv-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gv-hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.gv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gv-accent);
  background: rgba(var(--gv-accent-rgb), 0.1);
  border: 1px solid rgba(var(--gv-accent-rgb), 0.26);
}
.gv-hero__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gv-accent);
  box-shadow: 0 0 0 3px rgba(var(--gv-accent-rgb), 0.22);
  animation: gv-pulse 1.4s ease-in-out infinite;
}

.gv-hero-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-color);
}

.gv-hero__accent {
  color: var(--gv-accent);
}

.gv-hero-desc {
  margin: 0;
  max-width: 46em;
  color: var(--text-color-grey, var(--secondary-color));
  font-size: 0.86rem;
  line-height: 1.6;
}

body.dark .gv-hero {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 520px) {
  .gv-hero {
    border-radius: 16px;
  }
  .gv-hero__row {
    align-items: flex-start;
  }
  .gv-hero__poster {
    width: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gv-hero__badge i {
    animation: none;
  }
}
.gv-tabs {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.28rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--box-bg, var(--background-color-2));
}

.gv-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--text-color-grey, var(--text-color));
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gv-tab:hover {
  color: var(--text-color);
  background: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.08);
}

.gv-tab.is-active {
  color: var(--text-color);
  border-color: var(--border-color);
  background: var(--box-background-full, #fff);
  box-shadow: var(--shadow, 0 1px 3px rgba(15, 23, 42, 0.08));
}

body.dark .gv-tab.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gv-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--box-background);
  box-shadow: var(--shadow, none);
  position: relative;
  z-index: 5;
}

.gv-filter .x-select__dropdown,
.gv-filter .x-select__dropdown--portal {
  z-index: 10200;
}

.gv-filter-field {
  flex: 1;
  min-width: min(100%, 280px);
}

.gv-filter-field--grow {
  flex: 2;
  min-width: min(100%, 360px);
}

#gv-stream-catalog-section {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.gv-page-wrap .search-in-shop {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 4px 3px;
  box-sizing: border-box;
  overflow: visible;
}
.gv-page-wrap .shop-search__field {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible;
}
.gv-page-wrap .shop-search__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--search-icon-color, var(--text-color-grey));
  pointer-events: none;
}
.gv-page-wrap .shop-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--header-search-bg, var(--search-input-bg, var(--box-background-full)));
  color: var(--input-color, var(--full-color));
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  box-shadow: var(--header-search-shadow, var(--shadow, none));
}
.gv-page-wrap .shop-search__input::placeholder {
  color: var(--search-icon-color, var(--text-color-grey));
  opacity: 0.9;
}
.gv-page-wrap .shop-search__input:hover {
  box-shadow: var(--header-search-shadow, none), inset 0 0 0 1px var(--header-search-border, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.2));
}
.gv-page-wrap .shop-search__input:focus {
  outline: none;
  box-shadow: var(--header-search-shadow, none), inset 0 0 0 2px var(--header-search-border-focus, rgba(var(--brand-primary-rgb, 91, 124, 250), 0.45));
  background: var(--header-search-bg, var(--search-input-bg, var(--box-background-full)));
}
.gv-page-wrap .shop-search__input:focus-visible {
  outline: none;
}
@media (max-width: 768px) {
  .gv-page-wrap .shop-search__input {
    min-height: 44px;
    font-size: 13px;
    padding: 10px 40px 10px 12px;
    border-radius: 10px;
  }
  .gv-page-wrap .shop-search__icon {
    right: 12px;
    width: 18px;
    height: 18px;
  }
}

.gv-filter-submit {
  min-width: 150px;
  height: 3.75rem;
  flex-shrink: 0;
}

.gv-filter-submit span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-inline: 1.35rem;
  white-space: nowrap;
}

.gv-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.gv-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: var(--border-radius, 12px);
  background: var(--button-2-gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.gv-submit-btn--sm {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.gv-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gv-section-head--live {
  --gv-head-accent-rgb: 220, 38, 38;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--divider-color, var(--border-color));
}

body.dark .gv-section-head--live {
  --gv-head-accent-rgb: 239, 68, 68;
}

.gv-section-head--archive {
  --gv-head-accent-rgb: var(--brand-primary-rgb, 91, 124, 250);
}

body.dark .gv-section-head--archive {
  --gv-head-accent-rgb: var(--brand-primary-rgb, 91, 159, 255);
}

.gv-section-head__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.gv-section-title {
  position: relative;
  margin: 0;
  padding-inline-start: 0.7rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-color);
}
.gv-section-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(var(--gv-head-accent-rgb, 220, 38, 38)), rgba(var(--gv-head-accent-rgb, 220, 38, 38), 0.25));
}

.gv-section-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-color-grey, var(--secondary-color));
}

.gv-section-head__stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gv-count-badge,
.gv-live-badge,
.gv-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--menu-border-color, var(--border-color));
  background: var(--box-background-full, var(--navigation-background));
  color: var(--text-color-grey, var(--secondary-color));
  box-shadow: var(--shadow, none);
  white-space: nowrap;
}

.gv-live-badge {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

body.dark .gv-live-badge {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.13);
}

.gv-live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: gv-pulse 1.2s ease-in-out infinite;
}

.gv-stat-chip svg {
  opacity: 0.65;
}
.gv-stat-chip[hidden] {
  display: none;
}

.gv-stat-chip__value {
  font-weight: 800;
  color: var(--text-color);
}

.gv-stat-chip__label {
  font-weight: 600;
  opacity: 0.75;
}

@media (max-width: 560px) {
  .gv-section-head--live {
    flex-direction: column;
    align-items: flex-start;
  }
}
@keyframes gv-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gv-live-badge::before {
    animation: none;
  }
}
.gv-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.gv-media-card {
  display: block;
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.gv-media-card.is-active {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 1px rgba(var(--brand-primary-rgb, 91, 124, 250), 0.12) !important;
}

.gv-media-grid--live {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
  gap: 1.15rem 1rem;
}

.gv-live-card {
  --gv-card-accent: #dc2626;
  --gv-card-accent-rgb: 220, 38, 38;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--box-background-full, #fff);
  box-shadow: var(--shadow, 0 1px 2px rgba(28, 35, 51, 0.05));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.gv-live-card:hover, .gv-live-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--gv-card-accent-rgb), 0.4);
  box-shadow: 0 18px 34px -14px rgba(var(--gv-card-accent-rgb), 0.4), 0 4px 14px rgba(28, 35, 51, 0.1);
}
.gv-live-card:focus-visible {
  outline: 2px solid var(--gv-card-accent, #dc2626);
  outline-offset: 2px;
}
.gv-live-card.is-active {
  border-color: rgba(var(--gv-card-accent-rgb), 0.65) !important;
  box-shadow: 0 0 0 2px rgba(var(--gv-card-accent-rgb), 0.28) !important;
}

body.dark .gv-live-card {
  --gv-card-accent: #ef4444;
  --gv-card-accent-rgb: 239, 68, 68;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
body.dark .gv-live-card:hover, body.dark .gv-live-card:focus-visible {
  box-shadow: 0 20px 38px -16px rgba(var(--gv-card-accent-rgb), 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gv-live-card .gv-player-wrap {
  border-radius: 0;
}

.gv-live-card .gv-player-placeholder {
  background: transparent;
}
.gv-live-card .gv-player-placeholder:hover {
  background: transparent;
}

.gv-live-card .gv-thumb-img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gv-live-card:hover .gv-thumb-img,
.gv-live-card:focus-visible .gv-thumb-img {
  transform: scale(1.06);
}

.gv-live-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 8, 15, 0.78) 0%, rgba(6, 8, 15, 0.24) 38%, rgba(6, 8, 15, 0.04) 62%, transparent 100%), linear-gradient(to bottom, rgba(6, 8, 15, 0.4) 0%, transparent 34%);
}

.gv-live-card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(var(--gv-card-accent-rgb), 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(var(--gv-card-accent-rgb), 0.45);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.gv-live-card__play svg {
  margin-inline-start: 2px;
}

.gv-live-card:hover .gv-live-card__play,
.gv-live-card:focus-visible .gv-live-card__play,
.gv-live-card.is-active .gv-live-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gv-uptime {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0.6rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(10, 12, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gv-uptime svg {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .gv-live-card,
  .gv-live-card .gv-thumb-img,
  .gv-live-card__play {
    transition: none;
  }
  .gv-live-card:hover {
    transform: none;
  }
}
.gv-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.gv-player-wrap video {
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
}

.gv-player-placeholder {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s;
}
.gv-player-placeholder:hover {
  background: rgba(0, 0, 0, 0.48);
}

.gv-player-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gv-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
}

.gv-thumb-fallback--live {
  color: rgba(28, 35, 51, 0.5);
  background: linear-gradient(145deg, var(--background-color-2, #e8ecf4), var(--box-bg, #dfe5f0));
}

body.dark .gv-thumb-fallback--live {
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(18, 18, 28, 0.92), rgba(8, 8, 14, 0.88));
}

.gv-live-placeholder-svg {
  width: min(72%, 120px);
  height: auto;
  display: block;
}

.gv-thumb-stack {
  position: absolute;
  inset: 0;
}
.gv-thumb-stack .gv-thumb-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gv-thumb-stack .gv-thumb-fallback {
  z-index: 0;
}

.gv-media-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gv-media-card--live .gv-player-wrap {
  border-radius: inherit;
}

.gv-card-game {
  display: block;
  font-size: 0.78rem;
  opacity: 0.72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gv-page-wrap .origin-pagination {
  margin-top: 1.5rem;
}

#gv-stream-catalog-results {
  min-height: 120px;
}
#gv-stream-catalog-results.is-loading {
  pointer-events: none;
}
#gv-stream-catalog-results.is-loading .gv-media-grid,
#gv-stream-catalog-results.is-loading .gv-empty-state,
#gv-stream-catalog-results.is-loading .origin-pagination {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.gv-live-tag {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.42);
}
.gv-live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: gv-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .gv-live-tag i {
    animation: none;
  }
}
.gv-archive-tag {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.42);
}

.gv-media-grid--catalog {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1.15rem 1rem;
}

.gv-catalog-card {
  --gv-card-accent: #dc2626;
  --gv-card-accent-rgb: 220, 38, 38;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--box-background-full, #fff);
  box-shadow: var(--shadow, 0 1px 2px rgba(28, 35, 51, 0.05));
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.gv-catalog-card:hover, .gv-catalog-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--gv-card-accent-rgb), 0.4);
  box-shadow: 0 18px 34px -14px rgba(var(--gv-card-accent-rgb), 0.4), 0 4px 14px rgba(28, 35, 51, 0.1);
}
.gv-catalog-card:focus-visible {
  outline: 2px solid var(--gv-card-accent);
  outline-offset: 2px;
}
.gv-catalog-card .gv-player-wrap {
  border-radius: 0;
}
.gv-catalog-card .gv-player-placeholder {
  background: transparent;
}
.gv-catalog-card .gv-player-placeholder:hover {
  background: transparent;
}
.gv-catalog-card .gv-thumb-img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gv-catalog-card:hover .gv-thumb-img, .gv-catalog-card:focus-visible .gv-thumb-img {
  transform: scale(1.06);
}

.gv-catalog-card--archive {
  --gv-card-accent: var(--brand-primary, #5b7cfa);
  --gv-card-accent-rgb: var(--brand-primary-rgb, 91, 124, 250);
}

body.dark .gv-catalog-card {
  --gv-card-accent: #ef4444;
  --gv-card-accent-rgb: 239, 68, 68;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
body.dark .gv-catalog-card:hover, body.dark .gv-catalog-card:focus-visible {
  box-shadow: 0 20px 38px -16px rgba(var(--gv-card-accent-rgb), 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark .gv-catalog-card--archive {
  --gv-card-accent: var(--brand-primary, #5b9fff);
  --gv-card-accent-rgb: var(--brand-primary-rgb, 91, 159, 255);
}

.gv-catalog-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 8, 15, 0.45) 0%, transparent 38%);
}

.gv-catalog-card__enter {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(var(--gv-card-accent-rgb), 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(var(--gv-card-accent-rgb), 0.45);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.gv-catalog-card:hover .gv-catalog-card__enter,
.gv-catalog-card:focus-visible .gv-catalog-card__enter {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gv-catalog-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-color);
  text-align: start;
}

.gv-catalog-card__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gv-catalog-card__chevron {
  flex-shrink: 0;
  color: var(--gv-card-accent);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gv-catalog-card:hover .gv-catalog-card__label,
.gv-catalog-card:focus-visible .gv-catalog-card__label {
  color: var(--gv-card-accent);
}

.gv-catalog-card:hover .gv-catalog-card__chevron,
.gv-catalog-card:focus-visible .gv-catalog-card__chevron {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .gv-catalog-card,
  .gv-catalog-card .gv-thumb-img,
  .gv-catalog-card__enter,
  .gv-catalog-card__chevron {
    transition: none;
  }
  .gv-catalog-card:hover {
    transform: none;
  }
}
.gv-viewers,
.gv-duration {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: rgba(10, 12, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.7rem;
  font-weight: 600;
}
.gv-viewers svg,
.gv-duration svg {
  opacity: 0.85;
}

.gv-viewers {
  bottom: 0.6rem;
  inset-inline-start: 0.6rem;
}

.gv-duration {
  bottom: 0.6rem;
  inset-inline-end: 0.6rem;
}

.gv-player-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 3;
}

.gv-player-loading.active {
  display: flex;
}

.gv-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(var(--brand-primary-rgb, 91, 124, 250), 0.14);
  border-top-color: var(--brand-primary, #5b7cfa);
  border-radius: 50%;
  animation: gv-spin 0.8s linear infinite;
}

body.dark .gv-spinner {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand-primary, #5b9fff);
}

@keyframes gv-spin {
  to {
    transform: rotate(360deg);
  }
}
.gv-hint-box,
.gv-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  border: 1px dashed var(--border-color);
  color: var(--text-color-grey, var(--secondary-color));
  background: rgba(127, 127, 127, 0.03);
}

.gv-empty-state--live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: clamp(2.2rem, 6vw, 3.2rem) 1.25rem;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(220, 38, 38, 0.07) 0%, transparent 70%), rgba(127, 127, 127, 0.03);
}
.gv-empty-state--live .gv-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.22);
  font-size: 0;
}
.gv-empty-state--live .gv-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-color);
}
.gv-empty-state--live .gv-empty-desc {
  margin: 0;
  max-width: 34em;
  font-size: 0.82rem;
  line-height: 1.75;
}

body.dark .gv-empty-state--live .gv-empty-icon {
  color: #f87171;
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.26);
}

.gv-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
  gap: 1.15rem 1rem;
}

.gv-skeleton-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--box-background-full, #fff);
}

.gv-skeleton-thumb {
  aspect-ratio: 16/9;
}

.gv-skeleton-thumb {
  background: linear-gradient(100deg, rgba(120, 130, 150, 0.09) 30%, rgba(120, 130, 150, 0.18) 50%, rgba(120, 130, 150, 0.09) 70%);
  background-size: 220% 100%;
  animation: gv-shimmer 1.5s ease-in-out infinite;
}

body.dark .gv-skeleton-thumb {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 70%);
  background-size: 220% 100%;
}

@keyframes gv-shimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gv-skeleton-thumb {
    animation: none;
  }
}
.gv-live-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  color: var(--secondary-color);
}

.gv-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gv-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius, 12px);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.gv-alert-error {
  background: rgba(220, 69, 69, 0.08);
  border: 1px solid rgba(220, 69, 69, 0.28);
  color: #b42318;
}

body.dark .gv-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.gv-dev-panel {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  padding-top: 1rem;
}

.gv-dev-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.gv-dev-panel-body {
  margin-top: 0.85rem;
}

.gv-check-row {
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  font-size: 0.88rem;
}

.gv-check-detail {
  font-size: 0.8rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

.gv-ok {
  color: var(--brand-primary, #5b9fff);
}

.gv-fail {
  color: #ef4444;
}

.gv-dev-form {
  margin-top: 0.85rem;
}

.gv-dev-form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.gv-dev-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--input-border-color, var(--border-color));
  background: var(--input-background, rgba(0, 0, 0, 0.2));
  color: var(--text-color);
}

body.dark .gv-dev-form input {
  border-color: var(--border-color, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.2);
}

.gv-admin-player {
  width: 100%;
  aspect-ratio: 16/9;
  margin-top: 0.75rem;
  border-radius: var(--border-radius, 12px);
  background: #000;
}

@media (max-width: 640px) {
  .gv-hero {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }
  .gv-hero__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
  }
  .gv-hero__icon svg {
    width: 22px;
    height: 22px;
  }
  .gv-hero-title {
    font-size: 1.05rem;
  }
  .gv-hero-desc {
    font-size: 0.82rem;
  }
  .gv-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .gv-filter-submit {
    width: 100%;
  }
}
body.dark .gv-filter {
  background: var(--box-background);
  border-color: var(--border-color);
  box-shadow: var(--shadow, none);
}
body.dark .gv-tab {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(25, 30, 50, 0.92);
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
body.dark .gv-tab:hover {
  color: var(--text-color);
  background: var(--menu-item-hover-bg, rgba(91, 159, 255, 0.12));
  border-color: rgba(91, 159, 255, 0.4);
}
body.dark .gv-tab.is-active {
  background: rgba(91, 159, 255, 0.16);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
body.dark .gv-count-badge,
body.dark .gv-live-badge {
  background: rgba(25, 30, 50, 0.92);
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  color: rgba(255, 255, 255, 0.72);
}
body.dark .gv-hint-box,
body.dark .gv-empty-state {
  background: rgba(127, 127, 127, 0.05);
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  color: rgba(255, 255, 255, 0.65);
}

/* x-select — هماهنگ با shop/category */
body.dark .gv-page .x-select__trigger {
  height: 3.75rem;
  min-height: 3.75rem;
  max-height: 3.75rem;
  border-color: var(--menu-border-color, rgb(47, 47, 54));
  background: var(--header-search-bg, rgba(25, 30, 50, 0.92));
  color: var(--text-color);
  box-shadow: var(--header-search-shadow, none);
}
body.dark .gv-page .x-select__trigger:hover {
  border-color: rgba(var(--brand-primary-rgb, 91, 159, 255), 0.45);
  background: var(--menu-item-hover-bg, rgba(91, 159, 255, 0.12));
}
body.dark .gv-page .x-select.is-open .x-select__trigger,
body.dark .gv-page .x-select__trigger:focus-visible {
  border-color: var(--brand-primary, #5b9fff);
  box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb, 91, 159, 255), 0.18);
}
body.dark .gv-page .x-select__value,
body.dark .gv-page .x-select__placeholder-text {
  color: var(--text-color);
  font-weight: 700;
}
body.dark .gv-page .x-select__trigger.is-placeholder .x-select__value,
body.dark .gv-page .x-select__trigger.is-placeholder .x-select__placeholder-text {
  color: var(--secondary-color, #888);
}
body.dark .gv-page .x-select__chevron {
  border-color: var(--secondary-color, #888);
}
body.dark .gv-page .x-select__dropdown {
  background: var(--box-bg, #262632);
  border-color: var(--border-color, #555);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
body.dark .gv-page .x-select__search {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--border-color, #555);
}
body.dark .gv-page .x-select__search-input {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--border-color, #555);
  color: var(--text-color);
}
body.dark .gv-page .x-select__search-input::placeholder {
  color: var(--secondary-color, #888);
}
body.dark .gv-page .x-select__option {
  color: var(--text-color);
}
body.dark .gv-page .x-select__option:hover,
body.dark .gv-page .x-select__option.is-active {
  background: rgba(var(--brand-primary-rgb, 91, 159, 255), 0.12);
  color: var(--text-color);
}
body.dark .gv-page .x-select__option.is-selected {
  background: rgba(var(--brand-primary-rgb, 91, 159, 255), 0.18);
  color: #fff;
}
body.dark .gv-page .x-select__option.is-selected::before {
  color: var(--brand-primary, #5b9fff);
}
body.dark .gv-page .x-select__empty {
  color: var(--secondary-color, #888);
}

body:not(.dark) .gv-page .x-select__trigger {
  height: 3.75rem;
  min-height: 3.75rem;
  max-height: 3.75rem;
  border-color: var(--input-border-color, var(--border-color));
  background: var(--header-search-bg, var(--search-input-bg, var(--box-background-full)));
  color: var(--text-color);
  box-shadow: var(--header-search-shadow, none);
}
body:not(.dark) .gv-page .x-select__trigger:hover {
  border-color: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.45);
}
body:not(.dark) .gv-page .x-select.is-open .x-select__trigger,
body:not(.dark) .gv-page .x-select__trigger:focus-visible {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb, 91, 124, 250), 0.14);
}
body:not(.dark) .gv-page .x-select__value,
body:not(.dark) .gv-page .x-select__placeholder-text {
  color: var(--text-color);
  font-weight: 700;
}
body:not(.dark) .gv-page .x-select__trigger.is-placeholder .x-select__value,
body:not(.dark) .gv-page .x-select__trigger.is-placeholder .x-select__placeholder-text {
  color: var(--secondary-color);
}
body:not(.dark) .gv-page .x-select__chevron {
  border-color: var(--secondary-color);
}
body:not(.dark) .gv-page .x-select__dropdown {
  background: var(--box-background-full);
  border-color: var(--border-color);
  box-shadow: var(--shadow-lg);
}
body:not(.dark) .gv-page .x-select__search {
  background: var(--hint-bg);
  border-bottom-color: var(--border-color);
}
body:not(.dark) .gv-page .x-select__search-input {
  background: var(--input-background);
  border-color: var(--input-border-color);
  color: var(--text-color);
}
body:not(.dark) .gv-page .x-select__search-input::placeholder {
  color: var(--secondary-color);
}
body:not(.dark) .gv-page .x-select__option {
  color: var(--text-color);
}
body:not(.dark) .gv-page .x-select__option:hover,
body:not(.dark) .gv-page .x-select__option.is-active {
  background: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.08);
  color: var(--text-color);
}
body:not(.dark) .gv-page .x-select__option.is-selected {
  background: rgba(var(--brand-primary-rgb, 91, 124, 250), 0.12);
  color: var(--text-color);
}
body:not(.dark) .gv-page .x-select__option.is-selected::before {
  color: var(--brand-primary);
}
body:not(.dark) .gv-page .x-select__empty {
  color: var(--secondary-color);
}

/* موبایل — پخش زنده داخل دیالوگ */
body.gv-live-modal-open {
  overflow: hidden;
}

.gv-live-player-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 0.85rem max(1rem, env(safe-area-inset-bottom));
}
.gv-live-player-modal[hidden] {
  display: none !important;
}

.gv-live-player-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
}

.gv-live-player-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: min(86dvh, 640px);
  overflow: hidden;
  background: var(--box-background, var(--background-color-2, #18181b));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: gv-live-modal-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gv-live-modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.gv-live-player-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.gv-live-player-modal__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gv-live-player-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.12);
  color: var(--text-color);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gv-live-player-modal__body {
  min-height: min(52vw, 280px);
}
.gv-live-player-modal__body .product-live-streams__player-wrap {
  display: none;
  border-radius: 0;
  aspect-ratio: auto;
}
.gv-live-player-modal__body .product-live-streams__player-wrap.is-open,
.gv-live-player-modal__body .product-live-streams__player-wrap.is-mobile-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: min(52vw, 280px);
}
.gv-live-player-modal__body .product-live-streams__player-bar {
  display: none;
}
.gv-live-player-modal__body .product-live-streams__video-shell {
  background: #000;
}
.gv-live-player-modal__body .product-live-streams__video-shell video {
  width: 100%;
  height: auto;
  max-height: calc(86dvh - 4rem);
  aspect-ratio: 16/9;
  object-fit: contain;
}

.gv-live-player-modal__body .product-live-streams__video-shell:fullscreen,
.gv-live-player-modal__body .product-live-streams__video-shell:-webkit-full-screen,
.gv-live-player-modal__body .product-live-streams__player-wrap:fullscreen,
.gv-live-player-modal__body .product-live-streams__player-wrap:-webkit-full-screen,
.gv-live-player-modal__body video:fullscreen,
.gv-live-player-modal__body video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  object-fit: contain;
}

.gv-live-player-modal.is-maximized {
  padding: 0;
  align-items: stretch;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__backdrop {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__header {
  padding-top: max(0.8rem, env(safe-area-inset-top));
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__body .product-live-streams__player-wrap.is-open,
.gv-live-player-modal.is-maximized .gv-live-player-modal__body .product-live-streams__player-wrap.is-mobile-modal {
  flex: 1;
  min-height: 0;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__body .product-live-streams__video-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gv-live-player-modal.is-maximized .gv-live-player-modal__body .product-live-streams__video-shell video {
  width: 100%;
  height: 100%;
  max-height: none;
  flex: 1;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .gv-top-player {
    display: none;
  }
}
@media (max-width: 1024px) {
  .gv-page-wrap .gv-hero {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1rem;
  }
}
.gv-linked-products {
  position: relative;
  z-index: auto;
  margin: 1.5rem 0 0;
}
.gv-linked-products .products-container {
  padding: 0;
}
.gv-linked-products .p-attribute-icons {
  flex-wrap: wrap;
  height: auto;
  min-height: 32px;
  row-gap: 2px;
}
.gv-linked-products .p-attribute-icons > svg {
  flex: 0 0 auto;
}
.gv-linked-products[data-count="1"] .product-item {
  flex: 0 0 min(100%, 15.5rem);
}
.gv-linked-products[data-count="2"] .product-item {
  flex: 0 0 min(100%, 50% - 6px);
  max-width: 15.5rem;
}