
:root {
  --hsso-bg: #090b10;
  --hsso-panel: #0f1219;
  --hsso-soft: #151923;
  --hsso-soft-2: #1c2230;
  --hsso-border: rgba(255,255,255,.09);
  --hsso-text: #f6f7fb;
  --hsso-muted: #9ca4b5;
  --hsso-accent: #ff3c78;
  --hsso-accent-2: #8b5cf6;
  --hsso-radius: 18px;
  --hsso-shadow: 0 30px 100px rgba(0,0,0,.55);
}

body.hsso-open {
  overflow: hidden !important;
}

.hsso,
.hsso * {
  box-sizing: border-box;
}

.hsso {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  font-family: inherit;
}

.hsso.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hsso-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(139,92,246,.13), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255,60,120,.10), transparent 28%),
    rgba(4,5,8,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hsso-panel {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  height: min(880px, calc(100dvh - 40px));
  margin: 20px auto;
  background: linear-gradient(180deg, rgba(18,21,30,.98), rgba(9,11,16,.985));
  border: 1px solid var(--hsso-border);
  border-radius: 24px;
  box-shadow: var(--hsso-shadow);
  overflow: hidden;
  transform: translateY(12px) scale(.992);
  transition: transform .2s ease;
  color: var(--hsso-text);
}

.hsso.is-open .hsso-panel {
  transform: translateY(0) scale(1);
}

.hsso-header {
  height: 86px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hsso-border);
  background: rgba(12,15,22,.82);
}

.hsso-brand {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hsso-accent), var(--hsso-accent-2));
  box-shadow: 0 10px 30px rgba(255,60,120,.2);
}

.hsso-brand-mark {
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.hsso-searchbox {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  border-radius: 16px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.hsso-searchbox:focus-within {
  border-color: rgba(255,60,120,.5);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 4px rgba(255,60,120,.08);
}

.hsso-searchbox-icon {
  width: 19px;
  height: 19px;
  margin-left: 18px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--hsso-muted);
  position: relative;
}

.hsso-searchbox-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  background: currentColor;
  position: absolute;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 3px;
}

.hsso-input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 44px 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hsso-text) !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1 !important;
}

.hsso-input::placeholder {
  color: #7f8797;
  opacity: 1;
}

.hsso-input::-webkit-search-cancel-button {
  display: none;
}

.hsso-clear {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  color: var(--hsso-muted);
  font-size: 22px;
  cursor: pointer;
}

.hsso-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hsso-border);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: .15s ease;
}

.hsso-close:hover {
  background: rgba(255,255,255,.09);
  transform: rotate(2deg);
}

.hsso-close span,
.hsso-close span::after {
  content: "";
  width: 17px;
  height: 2px;
  background: #d9deea;
  display: block;
  border-radius: 3px;
}

.hsso-close span {
  transform: rotate(45deg);
}

.hsso-close span::after {
  transform: rotate(90deg);
}

.hsso-toolbar {
  min-height: 58px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hsso-border);
  background: rgba(255,255,255,.018);
}

.hsso-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hsso-filters::-webkit-scrollbar {
  display: none;
}

.hsso-filter,
.hsso-chip {
  appearance: none;
  border: 1px solid var(--hsso-border);
  background: rgba(255,255,255,.04);
  color: #cbd1dd;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s ease;
}

.hsso-filter {
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
}

.hsso-filter:hover,
.hsso-chip:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.hsso-filter.is-active {
  background: linear-gradient(135deg, rgba(255,60,120,.18), rgba(139,92,246,.16));
  border-color: rgba(255,60,120,.35);
  color: #fff;
}

.hsso-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hsso-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hsso-shortcut kbd {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-bottom-color: rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  color: #dce1eb;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-weight: 800;
}

.hsso-body {
  height: calc(100% - 145px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

.hsso-intro {
  max-width: 980px;
  margin: 16px auto 0;
}

.hsso-intro-copy {
  padding: 34px;
  border: 1px solid var(--hsso-border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,60,120,.08), transparent 42%),
    linear-gradient(315deg, rgba(139,92,246,.08), transparent 44%),
    rgba(255,255,255,.025);
}

.hsso-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #ff7aa4;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 900;
}

.hsso-intro h2,
.hsso-results-head h2,
.hsso-empty h2 {
  margin: 0;
  color: #fff;
  line-height: 1.15;
}

.hsso-intro h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.035em;
}

.hsso-intro p {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--hsso-muted);
  font-size: 15px;
  line-height: 1.7;
}

.hsso-popular,
.hsso-recent {
  margin-top: 28px;
}

.hsso-section-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hsso-section-head h3 {
  margin: 0;
  color: #f3f5f8;
  font-size: 14px;
  font-weight: 800;
}

.hsso-section-head span,
.hsso-section-head button {
  color: var(--hsso-muted);
  font-size: 12px;
}

.hsso-section-head button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hsso-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hsso-chip {
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 650;
}

.hsso-results {
  max-width: 1160px;
  margin: 0 auto;
}

.hsso-results-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hsso-results-head h2 {
  font-size: 28px;
  letter-spacing: -.025em;
}

.hsso-results-head strong {
  color: var(--hsso-muted);
  font-size: 12px;
  font-weight: 700;
}

.hsso-suggestions {
  margin: 0 0 20px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  border: 1px solid var(--hsso-border);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.hsso-suggestion-group {
  min-width: 0;
}

.hsso-suggestion-group > span {
  display: block;
  margin-bottom: 8px;
  color: #858ea1;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 10px;
  font-weight: 900;
}

.hsso-suggestion-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hsso-suggestion-group a {
  color: #d8deea;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hsso-suggestion-group a:hover {
  color: #fff;
}

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

.hsso-card {
  min-width: 0;
}

.hsso-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--hsso-soft);
  text-decoration: none !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}

.hsso-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.48));
  pointer-events: none;
}

.hsso-card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  transform: scale(1.001);
  transition: transform .25s ease, filter .25s ease;
}

.hsso-card:hover .hsso-card-media img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.hsso-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.25);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #171c28, #0e1118);
}

.hsso-card-badges {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.hsso-badge {
  padding: 5px 7px;
  border-radius: 7px;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}

.hsso-badge.is-sub {
  background: rgba(60,130,246,.88);
}

.hsso-badge.is-3d {
  background: rgba(139,92,246,.9);
}

.hsso-badge.is-uncensored {
  background: rgba(255,60,120,.9);
}

.hsso-card-play {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8,10,14,.72);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(7px);
  opacity: .92;
  transform: translateY(2px);
  transition: .18s ease;
}

.hsso-card-play::before {
  content: "";
  margin-left: 2px;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hsso-card:hover .hsso-card-play {
  transform: translateY(0) scale(1.05);
  background: rgba(255,60,120,.88);
}

.hsso-card-body {
  padding: 10px 2px 0;
}

.hsso-card-body h3 {
  margin: 0 !important;
  min-height: 40px;
  color: #f4f6fa;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
  letter-spacing: -.012em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hsso-card-body h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.hsso-card-body h3 a:hover {
  color: #fff !important;
}

.hsso-card-meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  color: #7f8798;
  font-size: 10.5px;
  font-weight: 650;
}

.hsso-card-meta span + span {
  position: relative;
}

.hsso-card-meta span + span::before {
  content: "•";
  position: absolute;
  left: -7px;
  color: #4c5360;
}

.hsso-more-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.hsso-more {
  min-width: 190px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #f5f7fb !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  transition: .15s ease;
}

.hsso-more:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
}

.hsso-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hsso-empty-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 20px;
  border: 1px solid var(--hsso-border);
  background: rgba(255,255,255,.035);
}

.hsso-empty-icon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 18px;
  height: 18px;
  border: 3px solid #8b93a3;
  border-radius: 50%;
}

.hsso-empty-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 3px;
  background: #8b93a3;
  transform: rotate(45deg);
  left: 37px;
  top: 39px;
  border-radius: 3px;
}

.hsso-empty h2 {
  font-size: 24px;
}

.hsso-empty p {
  margin: 10px 0 0;
  color: var(--hsso-muted);
  font-size: 14px;
}

.hsso-loading {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.hsso-loader {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: var(--hsso-accent);
  border-radius: 50%;
  animation: hsso-spin .72s linear infinite;
}

@keyframes hsso-spin {
  to { transform: rotate(360deg); }
}

.hsso-shortcode-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hsso-shortcode-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.hsso-shortcode-icon::after {
  content: "";
  width: 5px;
  height: 2px;
  background: currentColor;
  position: absolute;
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg);
}

@media (max-width: 980px) {
  .hsso-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .hsso-panel {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .hsso-header {
    height: 72px;
    grid-template-columns: minmax(0,1fr) 42px;
    padding: 10px 12px;
  }

  .hsso-brand {
    display: none;
  }

  .hsso-searchbox {
    height: 48px;
    border-radius: 13px;
  }

  .hsso-input {
    font-size: 15px !important;
  }

  .hsso-toolbar {
    min-height: 53px;
    padding: 8px 12px;
  }

  .hsso-shortcut {
    display: none;
  }

  .hsso-body {
    height: calc(100% - 125px);
    padding: 18px 12px 28px;
  }

  .hsso-intro {
    margin-top: 0;
  }

  .hsso-intro-copy {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .hsso-intro h2 {
    font-size: 30px;
  }

  .hsso-intro p {
    font-size: 13px;
  }

  .hsso-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px 10px;
  }

  .hsso-card-media {
    border-radius: 11px;
  }

  .hsso-card-body h3 {
    min-height: 36px;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }

  .hsso-card-meta {
    font-size: 9.5px;
    gap: 8px;
  }

  .hsso-suggestions {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hsso-results-head h2 {
    font-size: 23px;
  }

  .hsso-results-head strong {
    display: none;
  }

  .hsso-badge {
    padding: 4px 6px;
    font-size: 8px;
  }

  .hsso-card-play {
    width: 28px;
    height: 28px;
  }

  .hsso-card-play::before {
    border-left-width: 7px;
    border-top-width: 4px;
    border-bottom-width: 4px;
  }
}

@media (max-width: 390px) {
  .hsso-input::placeholder {
    font-size: 13px;
  }

  .hsso-grid {
    column-gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hsso,
  .hsso-panel,
  .hsso-card-media img,
  .hsso-card-play,
  .hsso-more,
  .hsso-close {
    transition: none !important;
  }

  .hsso-loader {
    animation-duration: 1.3s;
  }
}
