:root {
  --zp-bg: #0f0f1b;
  --zp-bg-elevated: #161622;
  --zp-bg-sidebar: #12121c;
  --zp-bg-card: rgba(22, 22, 34, 0.94);
  --zp-bg-card-solid: #181824;
  --zp-border: rgba(255, 255, 255, 0.08);
  --zp-border-strong: rgba(255, 255, 255, 0.14);
  --zp-primary: #6842ff;
  --zp-primary-light: #8566ff;
  --zp-primary-dark: #5535d9;
  --zp-accent: #6842ff;
  --zp-accent-light: #a48eff;
  --zp-accent-soft: rgba(104, 66, 255, 0.14);
  --zp-accent-soft-hover: rgba(104, 66, 255, 0.22);
  --zp-accent-light-soft: rgba(164, 142, 255, 0.16);
  --zp-accent-light-soft-hover: rgba(164, 142, 255, 0.24);
  --zp-gold: #fbbf24;
  --zp-gold-soft: rgba(251, 191, 36, 0.12);
  --zp-text: #ffffff;
  --zp-text-muted: #9ca3af;
  --zp-text-label: #6b7280;
  --zp-success: #22c55e;
  --zp-danger: #f87171;
  --zp-radius: 16px;
  --zp-radius-sm: 10px;
  --zp-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --zp-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --zp-glow: 0 0 20px rgba(104, 66, 255, 0.16);
  --zp-glow-strong: 0 0 28px rgba(104, 66, 255, 0.24);
  --zp-glass: rgba(255, 255, 255, 0.04);
  --zp-glass-border: rgba(255, 255, 255, 0.08);
  --zp-hover-bg: rgba(255, 255, 255, 0.05);
  --zp-sidebar-width: 280px;
  --zp-scrollbar-size: 5px;
  --zp-scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --zp-scrollbar-thumb-hover: rgba(255, 255, 255, 0.24);
  --zp-scrollbar-track: transparent;
  --zp-content-max: 1680px;
  --zp-gutter: clamp(1rem, 2.75vw, 2.25rem);
  --vs-header-sticky-height: 8.5rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--zp-bg);
  color: var(--zp-text);
  line-height: 1.6;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--zp-scrollbar-thumb) var(--zp-scrollbar-track);
}

html::-webkit-scrollbar {
  width: var(--zp-scrollbar-size);
  height: var(--zp-scrollbar-size);
}

html::-webkit-scrollbar-track {
  background: var(--zp-scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: var(--zp-scrollbar-thumb);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--zp-scrollbar-thumb-hover);
}

a { color: var(--zp-primary); text-decoration: none; }
a:hover { color: var(--zp-primary-light); }

.zp-container,
.zp-page-inner {
  width: 100%;
  max-width: var(--zp-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--zp-gutter);
  padding-right: var(--zp-gutter);
}

/* App shell — top navigation layout */
.zp-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--zp-bg);
}

.zp-app__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.zp-main {
  flex: 1;
  padding: 1.35rem 0 2.25rem;
  min-height: auto;
}

/* Hide legacy sidebar */
.zp-sidebar,
.zp-sidebar-overlay,
.zp-sidebar-toggle { display: none !important; }

/* Header — two-row layout */
.vs-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--zp-bg-elevated);
  box-shadow: var(--zp-shadow-soft);
}

.vs-header__top {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--zp-border);
  position: relative;
}

.vs-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vs-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.vs-header__logo-img {
  max-height: 42px;
  width: auto;
}

.vs-header__logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.vs-header__logo-main {
  color: var(--zp-text);
}

.vs-header__search {
  position: relative;
  width: 360px;
  max-width: 360px;
  flex-shrink: 0;
}

.vs-header__top-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  margin-left: auto;
}

.vs-header__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  background: var(--zp-bg-card-solid);
  color: var(--zp-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.vs-header__search-toggle:hover,
.vs-header__search-toggle.is-active {
  background: var(--zp-accent-soft);
  border-color: var(--zp-primary);
  color: var(--zp-primary-light);
}

.vs-header__search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--zp-bg-card-solid);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  overflow: hidden;
  min-height: 42px;
}

.vs-header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--zp-text);
  font: inherit;
  font-size: .9rem;
  padding: 0 1rem;
}

.vs-header__search-input::placeholder {
  color: var(--zp-text-muted);
}

.vs-header__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 0 1rem;
  flex-shrink: 0;
  border: none;
  background: var(--zp-primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease;
}

.vs-header__search-btn:hover {
  background: var(--zp-primary-light);
}

.vs-header__lang {
  position: relative;
  flex-shrink: 0;
}

.vs-header__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 42px;
  padding: 0 .85rem;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  background: var(--zp-bg-card-solid);
  color: var(--zp-text);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

.vs-header__lang-btn .fa-chevron-down {
  font-size: .6rem;
  opacity: .7;
}

.vs-header__lang-menu {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 150px;
  background: var(--zp-bg-card-solid);
  border: 1px solid var(--zp-border-strong);
  border-radius: var(--zp-radius-sm);
  box-shadow: var(--zp-shadow-soft);
  padding: .35rem;
  z-index: 400;
}

.vs-header__lang-item {
  display: block;
  padding: .55rem .75rem;
  color: var(--zp-text-muted);
  font-size: .85rem;
  border-radius: 6px;
  text-decoration: none;
}

.vs-header__lang-item:hover,
.vs-header__lang-item.is-active {
  color: var(--zp-text);
  background: var(--zp-accent-soft);
}

.vs-header__lang.is-open .vs-header__lang-menu {
  display: block;
}

.vs-header__nav {
  border-bottom: 2px solid var(--zp-primary);
}

.vs-header__nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}

.vs-header__nav-inner::-webkit-scrollbar {
  display: none;
}

.vs-header__nav-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.15rem;
  color: var(--zp-text);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-bottom: none;
  transition: color .2s, background .2s, border-color .2s;
}

.vs-header__nav-item i {
  font-size: .92rem;
  opacity: .9;
}

.vs-header__nav-item:hover {
  color: var(--zp-text);
  background: var(--zp-accent-soft);
}

.vs-header__nav-item.is-active {
  color: var(--zp-text);
  border-color: var(--zp-primary);
  border-bottom: 2px solid var(--zp-bg-elevated);
  margin-bottom: -2px;
  background: var(--zp-accent-soft);
}

.vs-header__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  flex-shrink: 0;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  background: var(--zp-bg-card-solid);
  color: var(--zp-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.vs-header__mobile-toggle:hover,
.vs-header__mobile-toggle.is-active {
  background: var(--zp-accent-soft);
  border-color: var(--zp-primary);
  color: var(--zp-primary-light);
}

.vs-header__mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 14, 0.62);
  backdrop-filter: blur(2px);
  z-index: 480;
}

.vs-header__mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: var(--zp-bg-card-solid);
  border-left: 1px solid var(--zp-border-strong);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  z-index: 490;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s ease;
}

.vs-header__mobile-drawer.is-open,
body.vs-mobile-menu-open .vs-header__mobile-drawer:not([hidden]) {
  transform: translateX(0);
}

.vs-header__mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--zp-border);
}

.vs-header__mobile-drawer-head strong {
  font-size: 1rem;
  font-weight: 700;
}

.vs-header__mobile-drawer-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  background: var(--zp-bg-elevated);
  color: var(--zp-text);
  font-size: 1rem;
  cursor: pointer;
}

.vs-header__mobile-drawer-close:hover {
  border-color: var(--zp-primary);
  background: var(--zp-accent-soft);
  color: var(--zp-primary-light);
}

.vs-header__mobile-menu-section + .vs-header__mobile-menu-section {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--zp-border);
}

.vs-header__mobile-menu-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zp-text-label);
}

.vs-header__mobile-menu-label i {
  color: var(--zp-accent-light);
}

.vs-header__mobile-search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  overflow: hidden;
  background: var(--zp-bg-elevated);
}

.vs-header__mobile-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--zp-text);
  font: inherit;
  font-size: .88rem;
  padding: .65rem .75rem;
}

.vs-header__mobile-search-input::placeholder {
  color: var(--zp-text-muted);
}

.vs-header__mobile-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 0 .85rem;
  border: none;
  background: var(--zp-primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.vs-header__mobile-lang-list {
  display: grid;
  gap: .35rem;
}

.vs-header__mobile-lang-item {
  display: block;
  padding: .6rem .75rem;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  color: var(--zp-text-muted);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--zp-bg-elevated);
}

.vs-header__mobile-lang-item:hover,
.vs-header__mobile-lang-item.is-active {
  color: var(--zp-text);
  border-color: var(--zp-primary);
  background: var(--zp-accent-soft);
}

.vs-header__mobile-nav {
  display: grid;
  gap: .35rem;
}

.vs-header__mobile-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .75rem;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius-sm);
  color: var(--zp-text-muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--zp-bg-elevated);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.vs-header__mobile-nav-item i {
  width: 1.1rem;
  text-align: center;
  color: var(--zp-accent-light);
  font-size: .92rem;
}

.vs-header__mobile-nav-item:hover,
.vs-header__mobile-nav-item.is-active {
  color: var(--zp-text);
  border-color: var(--zp-primary);
  background: var(--zp-accent-soft);
}

.vs-header__mobile-nav-item.is-active i {
  color: var(--zp-primary-light);
}

/* Video card view count */
.vs-video-card__views {
  position: absolute;
  bottom: .45rem;
  right: .45rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .45rem;
  border-radius: 4px;
}

.vs-video-card__duration {
  position: absolute;
  bottom: .45rem;
  left: .45rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .45rem;
  border-radius: 4px;
}

.vs-video-card__thumb { position: relative; }

/* Tags cloud */
.vs-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.vs-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  background: var(--zp-bg-card);
  border: 1px solid var(--zp-border);
  border-radius: 999px;
  color: var(--zp-text);
  font-size: .88rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.vs-tag-chip:hover {
  border-color: var(--zp-primary);
  background: var(--zp-accent-soft);
  color: var(--zp-text);
}

.vs-tag-chip__count {
  background: var(--zp-accent-soft);
  color: var(--zp-accent-light);
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  :root {
    --vs-header-sticky-height: 5.5rem;
  }

  .vs-header__top {
    padding: .75rem 0;
  }

  .vs-header__inner {
    gap: .75rem;
  }

  .vs-header__top-actions--desktop {
    display: none;
  }

  .vs-header__mobile-toggle {
    display: inline-flex;
  }

  .vs-header__nav {
    display: none;
  }

  .vs-header__logo-img {
    max-height: 56px;
  }

  .vs-header__logo-text {
    font-size: 2rem;
  }

  body.vs-mobile-menu-open {
    overflow: hidden;
  }
}

.zp-body--rtl .vs-header__lang-menu {
  right: auto;
  left: 0;
}

.zp-body--rtl .vs-header__mobile-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--zp-border-strong);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
}

.zp-body--rtl .vs-header__mobile-drawer.is-open,
.zp-body--rtl.vs-mobile-menu-open .vs-header__mobile-drawer:not([hidden]) {
  transform: translateX(0);
}

.x-hidden { display: none !important; }

/* Sidebar */
.zp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: var(--zp-sidebar-width);
  background: var(--zp-bg-sidebar);
  border-right: 1px solid var(--zp-border);
  z-index: 200;
  overflow: hidden;
}

.zp-sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem 1.25rem;
  overflow: hidden;
}

.zp-sidebar__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  flex-shrink: 0;
  margin-bottom: .25rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--zp-border);
}

.zp-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--zp-text);
  padding: .35rem .5rem 0;
  margin-bottom: 0;
  border-bottom: none;
  min-width: 0;
  flex: 1;
}

.zp-sidebar__close {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: var(--zp-radius-sm);
  border: 1px solid var(--zp-border);
  background: var(--zp-bg-elevated);
  color: var(--zp-text-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  place-items: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.zp-sidebar__close i {
  font-size: 1.05rem;
  pointer-events: none;
}

.zp-sidebar__close:hover {
  background: var(--zp-hover-bg);
  color: var(--zp-text);
  border-color: var(--zp-border-strong);
}

.zp-sidebar__close:active {
  transform: scale(0.96);
}

.zp-sidebar__brand--logo {
  padding: .55rem .25rem 0;
  min-height: 64px;
}

.zp-brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.zp-brand-logo--sidebar {
  max-height: 56px;
  width: auto;
  max-width: 100%;
}

.zp-sidebar__brand-text {
  display: grid;
  gap: .1rem;
  line-height: 1.2;
}

.zp-sidebar__brand-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zp-sidebar__brand-text small {
  font-size: .72rem;
  font-weight: 500;
  color: var(--zp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zp-sidebar__section {
  display: grid;
  gap: .45rem;
  margin-bottom: 1.25rem;
}

.zp-sidebar__section--nav {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  padding: .35rem 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--zp-scrollbar-thumb) var(--zp-scrollbar-track);
  display: block;
}

.zp-sidebar__section--nav::-webkit-scrollbar { width: var(--zp-scrollbar-size); }
.zp-sidebar__section--nav::-webkit-scrollbar-track { background: var(--zp-scrollbar-track); }
.zp-sidebar__section--nav::-webkit-scrollbar-thumb {
  background: var(--zp-scrollbar-thumb);
  border-radius: 999px;
}

.zp-sidebar__section--nav::-webkit-scrollbar-thumb:hover {
  background: var(--zp-scrollbar-thumb-hover);
}

.zp-sidebar__section--bottom {
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--zp-border);
}

.zp-sidebar__section--ad {
  margin-top: .5rem;
}

.zp-ad {
  overflow: hidden;
}

.zp-ad--sidebar {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  margin: .45rem auto 0;
  border-radius: var(--zp-radius-sm);
  border: 1px solid var(--zp-border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  text-align: center;
}

.zp-ad--sidebar iframe,
.zp-ad--sidebar img,
.zp-ad--sidebar ins {
  max-width: 100%;
  max-height: 100%;
}

.zp-sidebar__label {
  display: block;
  padding: 0 .65rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zp-text-label);
}

.zp-sidebar__nav {
  display: grid;
  gap: .35rem;
}

.zp-sidebar__section--nav .zp-sidebar__nav {
  gap: .25rem;
}

.zp-sidebar__section--nav .zp-sidebar__link {
  display: flex;
  width: 100%;
  padding: .58rem .85rem .58rem 1.1rem;
  margin: 0;
  font-size: .875rem;
}

.zp-sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .85rem .72rem 1.25rem;
  margin: 0 .1rem;
  border-radius: 12px;
  color: var(--zp-text);
  font-weight: 600;
  font-size: .925rem;
  border: none;
  transition: color .2s ease, background .2s ease;
}

.zp-sidebar__icon {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--zp-accent-light);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color .2s ease;
}

.zp-sidebar__link:hover {
  color: var(--zp-text);
  background: var(--zp-hover-bg);
}

.zp-sidebar__link:hover .zp-sidebar__icon {
  color: var(--zp-accent-light);
}

.zp-sidebar__link.is-active {
  color: var(--zp-primary);
  background: var(--zp-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(104, 66, 255, 0.16);
}

.zp-sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 52%;
  min-height: 20px;
  border-radius: 999px;
  background: var(--zp-primary);
}

.zp-sidebar__link.is-active .zp-sidebar__icon {
  color: var(--zp-primary);
}

.zp-sidebar__link--muted:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.zp-sidebar__link--muted:hover .zp-sidebar__icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}

.zp-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .35rem;
  padding: .8rem 1rem;
  border-radius: var(--zp-radius-sm);
  font-weight: 700;
  font-size: .925rem;
  color: #fff;
  background: var(--zp-primary);
  box-shadow: none;
  transition: background .2s ease, transform .2s ease;
}

.zp-sidebar__cta:hover {
  color: #fff;
  background: var(--zp-primary-dark);
  transform: translateY(-1px);
}

.zp-sidebar__user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
  margin-bottom: .35rem;
  border-radius: var(--zp-radius-sm);
  background: var(--zp-glass);
  border: 1px solid var(--zp-border);
}

a.zp-sidebar__user {
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, border-color .15s ease;
}

a.zp-sidebar__user:hover {
  background: var(--zp-hover-bg);
  border-color: var(--zp-border-strong);
}

.zp-sidebar__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  background: var(--zp-primary);
  box-shadow: none;
}

.zp-sidebar__user strong {
  display: block;
  font-size: .9rem;
  color: var(--zp-text);
}

.zp-sidebar__user small {
  font-size: .75rem;
  color: var(--zp-text-muted);
}

.zp-sidebar__lang {
  position: relative;
}

.zp-sidebar__lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .85rem;
  border-radius: var(--zp-radius-sm);
  border: 1px solid var(--zp-border);
  background: var(--zp-glass);
  color: var(--zp-text);
  font: inherit;
  font-size: .925rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.zp-sidebar__lang-btn .zp-sidebar__icon {
  color: var(--zp-primary);
}

.zp-sidebar__lang-btn:hover,
.zp-sidebar__lang.is-open .zp-sidebar__lang-btn {
  background: var(--zp-hover-bg);
  border-color: var(--zp-border-strong);
}

.zp-sidebar__chevron {
  margin-left: auto;
  font-size: .7rem;
  opacity: .7;
  transition: transform .2s ease;
}

.zp-sidebar__lang.is-open .zp-sidebar__chevron {
  transform: rotate(180deg);
}

.zp-sidebar__lang-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + .4rem);
  max-height: min(14rem, 42vh);
  background: var(--zp-bg-card);
  border: 1px solid var(--zp-border);
  border-radius: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--zp-shadow);
  z-index: 20;
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 66, 255, 0.45) transparent;
}

.zp-sidebar__lang-menu::-webkit-scrollbar {
  width: 6px;
}

.zp-sidebar__lang-menu::-webkit-scrollbar-thumb {
  background: rgba(104, 66, 255, 0.45);
  border-radius: 999px;
}

.zp-sidebar__lang.is-open .zp-sidebar__lang-menu {
  display: grid;
}

.zp-sidebar__lang-item {
  padding: .65rem .85rem;
  color: var(--zp-text-muted);
  font-size: .875rem;
  transition: background .15s ease, color .15s ease;
}

.zp-sidebar__lang-item:hover,
.zp-sidebar__lang-item.is-active {
  background: var(--zp-hover-bg);
  color: var(--zp-primary);
}

.zp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 12, 0.72);
  backdrop-filter: blur(4px);
  z-index: 190;
}

.zp-sidebar-overlay:not([hidden]) {
  display: block;
}

.zp-sidebar-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--zp-radius-sm);
  border: 1px solid var(--zp-border);
  background: var(--zp-bg-elevated);
  color: var(--zp-primary);
  cursor: pointer;
  transition: background .2s ease;
  place-items: center;
}

.zp-sidebar-toggle:hover {
  background: var(--zp-hover-bg);
}

.zp-sidebar-toggle:active {
  transform: scale(0.96);
}

/* Header — search only */
.zp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .9rem 1.65rem;
  background: rgba(15, 15, 27, 0.88);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--zp-border);
  box-shadow: none;
}

.zp-header__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
}

.zp-header-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
}

.zp-header-search-wrap .zp-header-search {
  max-width: none;
  margin: 0;
}

.zp-header-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
  background: var(--zp-glass);
  border: 1px solid var(--zp-border);
  border-radius: 999px;
  padding: .7rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.zp-header-search:focus-within {
  border-color: var(--zp-border-strong);
  box-shadow: 0 0 0 2px var(--zp-accent-soft);
}

.zp-header-profile {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.zp-header-profile__btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem .45rem .45rem;
  border-radius: 999px;
  border: 1px solid var(--zp-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zp-text);
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}

.zp-header-profile__btn:hover,
.zp-header-profile.is-open .zp-header-profile__btn {
  background: var(--zp-hover-bg);
  border-color: var(--zp-border-strong);
  box-shadow: none;
}

.zp-header-profile__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--zp-primary);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.zp-header-profile__avatar--guest {
  background: rgba(255, 255, 255, 0.08);
  color: var(--zp-text-muted);
  font-size: .9rem;
}

.zp-header-profile__avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.zp-header-profile__name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zp-header-profile__chevron {
  font-size: .7rem;
  color: var(--zp-text-muted);
  transition: transform .2s ease;
}

.zp-header-profile.is-open .zp-header-profile__chevron {
  transform: rotate(180deg);
}

.zp-header:has(.zp-header-profile.is-open) {
  z-index: 250;
}

.zp-header-profile__menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  min-width: 220px;
  padding: .45rem;
  border-radius: 14px;
  background: var(--zp-bg-sidebar);
  border: 1px solid var(--zp-border-strong);
  box-shadow: var(--zp-shadow), 0 18px 48px rgba(0, 0, 0, 0.72);
  z-index: 300;
  overflow: hidden;
  isolation: isolate;
}

.zp-header-profile__menu[hidden] {
  display: none;
}

.zp-header-profile__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  margin-bottom: .25rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--zp-border);
}

.zp-header-profile__head strong {
  display: block;
  font-size: .92rem;
}

.zp-header-profile__head small {
  color: var(--zp-text-muted);
  font-size: .75rem;
}

.zp-header-profile__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  color: var(--zp-text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.zp-header-profile__link:hover {
  background: var(--zp-hover-bg);
  color: var(--zp-text);
}

.zp-header-profile__link i {
  width: 1rem;
  text-align: center;
}

.zp-header-profile__link--muted:hover {
  color: var(--zp-danger);
  background: rgba(239, 68, 68, 0.08);
}

.zp-header-profile__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: .35rem .45rem .25rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: var(--zp-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: none;
}

.zp-header-profile__cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

.zp-header-search i { color: var(--zp-text-muted); }
.zp-header-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--zp-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}
.zp-header-search input::placeholder { color: var(--zp-text-muted); }

.zp-search-suggest {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  background: var(--zp-bg-sidebar);
  border: 1px solid var(--zp-border-strong);
  border-radius: 14px;
  box-shadow: var(--zp-shadow), 0 18px 48px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  z-index: 260;
  isolation: isolate;
}

.zp-search-suggest[hidden] { display: none; }

.zp-search-suggest__list {
  max-height: 320px;
  overflow-y: auto;
}

.zp-search-suggest__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  color: var(--zp-text);
  text-decoration: none;
  transition: background .15s ease;
}

.zp-search-suggest__item:hover,
.zp-search-suggest__item.is-active {
  background: var(--zp-hover-bg);
}

.zp-search-suggest__all {
  display: block;
  padding: .75rem .85rem;
  border-top: 1px solid var(--zp-border);
  color: var(--zp-primary);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}

.zp-search-suggest__all:hover {
  background: var(--zp-hover-bg);
  color: var(--zp-primary-light);
}

.zp-search-suggest__thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--zp-bg-elevated);
  display: grid;
  place-items: center;
  color: var(--zp-text-muted);
  font-size: .9rem;
}

.zp-search-suggest__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zp-search-suggest__title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zp-search-suggest__empty {
  padding: 1rem .85rem;
  color: var(--zp-text-muted);
  font-size: .88rem;
}

.zp-logo__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--zp-primary);
  box-shadow: none;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.15rem;
}

.zp-logo__icon--gold {
  background: linear-gradient(145deg, #ffe066, var(--zp-gold));
  color: #1a1033;
  box-shadow: 0 0 22px rgba(255, 204, 0, 0.35);
}

/* Buttons */
.zp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: var(--zp-radius-sm);
  padding: .68rem 1.05rem;
  font-weight: 600;
  font-size: .925rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.zp-btn--primary {
  border: none;
  background: var(--zp-primary);
  color: #fff;
  box-shadow: none;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.zp-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
  background: var(--zp-primary-dark);
}

a.zp-btn--primary,
a.zp-btn--primary:hover,
a.zp-btn--primary:focus-visible {
  color: #fff;
}
.zp-btn--outline {
  border-color: var(--zp-border-strong);
  color: var(--zp-text);
  background: var(--zp-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.zp-btn--outline:hover {
  border-color: var(--zp-primary);
  background: var(--zp-accent-soft);
}
.zp-btn--ghost {
  background: var(--zp-glass);
  color: var(--zp-text-muted);
  border-color: transparent;
}
.zp-btn--ghost:hover {
  color: var(--zp-text);
  background: rgba(255, 255, 255, 0.06);
}
.zp-btn--sm { padding: .45rem .75rem; font-size: .875rem; }
.zp-btn--lg { padding: .85rem 1.35rem; }
.zp-btn--block { width: 100%; }

.zp-user-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--zp-text);
}
.zp-user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--zp-primary);
  font-weight: 700;
  font-size: .85rem;
}
.zp-user-chip__avatar--lg { width: 56px; height: 56px; font-size: 1.25rem; }

/* Sections */
.zp-section { padding: 0; }
.zp-section--flush { padding: 0; }

.zp-section--flush .vs-video-grid + .zp-section__head {
  margin-top: 2.5rem;
}

.zp-section__more {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.zp-section__more-btn {
  min-width: 180px;
}

.zp-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--zp-border);
}
.zp-section__head h1, .zp-section__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
}
.zp-section__head h1 i,
.zp-section__head h2 i {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--zp-accent-light);
  background: var(--zp-accent-light-soft);
  border: 1px solid rgba(164, 142, 255, 0.22);
}
.zp-link {
  color: var(--zp-primary);
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.zp-link--more {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--zp-text-muted);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.zp-link--more:hover {
  color: var(--zp-primary-light);
  background: var(--zp-accent-soft);
}

.vs-videos-sort {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--zp-border);
}

.vs-videos-sort__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--zp-text-muted);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.vs-videos-sort__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--zp-primary), var(--zp-primary-light));
  box-shadow: var(--zp-glow);
}

@media (max-width: 768px) {
  .zp-section__head {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .vs-videos-sort {
    width: 100%;
    display: flex;
    justify-content: stretch;
    gap: .25rem;
    padding: .3rem;
  }

  .vs-videos-sort__item {
    flex: 1 1 0;
    min-width: 0;
    padding: .55rem .35rem;
    font-size: clamp(.72rem, 2.6vw, .82rem);
    text-align: center;
  }

  .zp-section__head-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }

  .zp-section__head-actions .zp-link {
    align-self: center;
  }
}

.zp-section__head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .65rem;
}
.zp-link:hover {
  color: var(--zp-primary-light);
  background: var(--zp-accent-soft);
}

/* Video grid */
.vs-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}
.vs-video-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.vs-video-grid .zp-empty {
  grid-column: 1 / -1;
}
.vs-video-card {
  background: var(--zp-bg-card-solid);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  overflow: hidden;
  color: var(--zp-text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  transform: translateZ(0);
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.vs-video-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: var(--zp-border-strong);
  box-shadow: var(--zp-shadow-soft);
}
.vs-video-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--zp-bg-elevated);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.vs-video-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform .35s ease;
}
.vs-video-card:hover .vs-video-card__thumb img { transform: scale(1.04) translateZ(0); }
.vs-video-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--zp-text-muted);
}
.vs-video-card__badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: var(--zp-primary);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .5rem;
  border-radius: 999px;
}
.vs-video-card__body {
  position: relative;
  z-index: 2;
  padding: .85rem .95rem .95rem;
  background: var(--zp-bg-elevated);
  border-top: 1px solid var(--zp-border);
  transition: background .25s ease, border-color .25s ease;
}
.vs-video-card:hover .vs-video-card__body {
  background: var(--zp-bg-card-solid);
  border-top-color: var(--zp-border);
}
.vs-video-card__body h3 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Categories */
.zp-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.zp-category-card {
  background: var(--zp-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  padding: 0;
  color: var(--zp-text);
  display: grid;
  gap: 0;
  text-align: center;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: auto;
}
.zp-category-card:hover {
  border-color: var(--zp-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--zp-shadow-soft);
  background: var(--zp-hover-bg);
}
.zp-category-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--zp-bg-elevated);
}
.zp-category-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.zp-category-card:hover .zp-category-card__thumb img {
  transform: scale(1.04);
}
.zp-category-card__thumb.is-placeholder {
  display: grid;
  place-items: center;
}
.zp-category-card__thumb.is-placeholder i {
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.6rem;
  color: var(--zp-accent-light);
  background: var(--zp-accent-light-soft);
  border: 1px solid rgba(164, 142, 255, 0.22);
}
.zp-category-card strong {
  display: block;
  padding: .9rem 1rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.zp-category-card strong + small {
  display: block;
  margin-top: -.65rem;
  padding: 0 1rem 1.25rem;
  color: var(--zp-text-muted);
  font-size: .8rem;
}

/* Search */
.zp-search {
  display: flex;
  gap: .5rem;
  max-width: 360px;
}
.zp-search input {
  flex: 1;
  background: var(--zp-bg-card);
  border: 1px solid var(--zp-border);
  color: var(--zp-text);
  border-radius: 12px;
  padding: .65rem .85rem;
}
.zp-search button {
  background: var(--zp-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 .9rem;
  cursor: pointer;
}

/* Footer */
.zp-footer {
  margin-top: auto;
  border-top: 1px solid var(--zp-border);
  padding: 1.25rem 0;
  color: var(--zp-text-muted);
  font-size: .82rem;
  text-align: center;
}

.zp-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  margin-bottom: .65rem;
}

.zp-footer__links a {
  color: var(--zp-text-muted);
  font-weight: 500;
  transition: color .2s ease;
}

.zp-footer__links a:hover {
  color: var(--zp-accent-light);
}

.zp-footer__copy {
  margin: 0;
}

/* Empty / pagination */
.zp-empty, .zp-empty-page {
  text-align: center;
  color: var(--zp-text-muted);
  padding: 2rem;
}

.zp-empty--search {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem 2.75rem;
}

.zp-empty--search > i {
  display: block;
  font-size: 2.25rem;
  margin-bottom: .85rem;
  color: var(--zp-primary-light);
  opacity: .9;
}

.zp-empty--search p {
  margin: 0 0 1rem;
  font-size: .98rem;
  font-weight: 600;
  color: var(--zp-text);
}

.zp-empty__action {
  display: inline-flex;
}

.zp-empty__action i {
  color: #fff;
}

.zp-empty-page i { font-size: 3rem; margin-bottom: 1rem; }
.zp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Forms shared */
.zp-field { margin-bottom: 1rem; }
.zp-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.zp-field input, .zp-field select, .zp-field textarea {
  width: 100%;
  background: var(--zp-glass);
  border: 1px solid var(--zp-border);
  color: var(--zp-text);
  border-radius: var(--zp-radius-sm);
  padding: .72rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.zp-field input:focus, .zp-field select:focus, .zp-field textarea:focus {
  outline: none;
  border-color: var(--zp-border-strong);
  box-shadow: 0 0 0 3px var(--zp-accent-soft);
}
.zp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.zp-checkbox { display: flex; align-items: center; gap: .5rem; margin: .75rem 0; cursor: pointer; }
.zp-alert {
  padding: .75rem .9rem;
  border-radius: 10px;
  margin: .75rem 0;
  font-size: .9rem;
}
.zp-alert--error { background: rgba(239,68,68,.15); color: #fecaca; }
.zp-alert--success { background: rgba(34,197,94,.15); color: #bbf7d0; }

.zp-tag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(147,51,234,.15);
  color: var(--zp-accent);
  font-size: .75rem;
}

.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 2rem; }

@media (max-width: 900px) {
  .zp-app { grid-template-columns: 1fr; }
  body.zp-sidebar-open {
    overflow: hidden;
  }
  .zp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-100%);
    transition: transform .28s ease;
    width: min(var(--zp-sidebar-width), 88vw);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 210;
  }
  .zp-sidebar__inner {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }
  .zp-sidebar-open .zp-sidebar { transform: translateX(0); }
  .zp-sidebar-toggle {
    display: grid;
    position: relative;
    z-index: 120;
  }
  .zp-sidebar__close {
    display: grid;
    position: absolute;
    top: .15rem;
    right: 0;
    z-index: 2;
  }
  .zp-sidebar__header {
    padding-right: 2.85rem;
  }
  .zp-header-profile__name { display: none; }
  .zp-header-profile__chevron { display: none; }
  .zp-header-profile__btn { padding: .35rem; }
}

.zp-body--rtl { direction: rtl; }
.zp-body--rtl .zp-sidebar { border-right: none; border-left: 1px solid var(--zp-border); }
.zp-body--rtl.zp-sidebar-open .zp-sidebar { transform: translateX(0); }
@media (max-width: 900px) {
  .zp-body--rtl .zp-sidebar { transform: translateX(100%); }
  .zp-body--rtl .zp-sidebar__close {
    right: auto;
    left: 0;
  }
}
