/*
Theme Name: Video Ad Grid Theme
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: Dark mobile homepage shell rebuilt around ad loops and video shelves.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: video-ad-grid-theme
*/

:root {
  --bg: #0e0e10;
  --bg-2: #151518;
  --panel: #17181d;
  --panel-soft: #1d1f27;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #fff;
  --muted: #8b8a92;
  --muted-2: #ababbf;
  --accent: #ff17c8;
  --accent-2: #857dff;
  --accent-3: #ff9538;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #101115, #0b0b0d 30%, #09090b);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
}

body.is-drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

nav[aria-label="Website language selector"] {
  display: none !important;
}

.site-wrap {
  width: min(100vw, 375px);
  margin: 0 auto;
}

.site-shell-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(100vw, 375px);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(14px);
}

.site-shell-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 16, 0.96), rgba(14, 14, 16, 0.88)),
    url("../assets/images/head-bg-msk.png") center top / cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
}

.header-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.header-icon--menu {
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.header-icon--menu span {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.header-icon--menu span:nth-child(1) {
  transform: translateY(-4px);
}

.header-icon--menu span:nth-child(3) {
  transform: translateY(4px);
}

.header-icon--search .header-icon__lens {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.header-icon--search .header-icon__lens::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(45deg);
}

.brand-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  display: block;
  height: 27px;
  width: auto;
}

.site-home {
  padding: 8px 0 68px;
}

.site-home__shell {
  padding: 0 12px 16px;
}

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

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.site-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(84vw, 320px);
  height: 100%;
  padding: 18px 16px 20px;
  background:
    linear-gradient(180deg, rgba(17, 18, 23, 0.98), rgba(8, 8, 11, 0.98)),
    radial-gradient(circle at top right, rgba(255, 23, 200, 0.2), transparent 30%);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 36px rgba(0, 0, 0, 0.28);
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}

body.is-drawer-open .site-drawer {
  pointer-events: auto;
}

body.is-drawer-open .site-drawer__backdrop {
  opacity: 1;
}

body.is-drawer-open .site-drawer__panel {
  transform: translateX(0);
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.site-drawer__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-drawer__label {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-drawer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-drawer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  color: #fff;
  font-size: 12px;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #17151b;
  border: 1px solid #353535;
  color: #d9d7e7;
  font-size: 11px;
  line-height: 1.4;
}

.notice-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.search-strip {
  margin-bottom: 8px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: #15161b;
  border: 1px solid var(--line-soft);
}

.search-form__input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  background: #0f1014;
  color: #fff;
  font-size: 13px;
}

.search-form__input::placeholder {
  color: var(--muted);
}

.search-form__input:focus {
  border-color: rgba(255, 23, 200, 0.45);
}

.search-form__button {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hf-list.full-width.hengfu-area {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.hf-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 14px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(31, 32, 42, 0.98), rgba(18, 19, 27, 0.98));
}

.hf-banner__backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  transform: scale(1.04);
}

.hf-banner::before,
.item-media::before,
.post-pic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(135deg, var(--tone-a, rgba(255, 23, 200, 0.22)), var(--tone-b, rgba(133, 125, 255, 0.16)));
}

.hf-banner::after,
.item-media::after,
.post-pic::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone-glow, rgba(255, 23, 200, 0.28)), transparent 72%);
}

.tone-1 {
  --tone-a: rgba(255, 23, 200, 0.28);
  --tone-b: rgba(133, 125, 255, 0.22);
  --tone-glow: rgba(255, 23, 200, 0.34);
}

.tone-2 {
  --tone-a: rgba(255, 149, 56, 0.24);
  --tone-b: rgba(255, 23, 200, 0.16);
  --tone-glow: rgba(255, 149, 56, 0.3);
}

.tone-3 {
  --tone-a: rgba(73, 196, 255, 0.22);
  --tone-b: rgba(133, 125, 255, 0.18);
  --tone-glow: rgba(73, 196, 255, 0.28);
}

.tone-4 {
  --tone-a: rgba(120, 227, 146, 0.2);
  --tone-b: rgba(73, 196, 255, 0.14);
  --tone-glow: rgba(120, 227, 146, 0.24);
}

.tone-5 {
  --tone-a: rgba(255, 215, 90, 0.22);
  --tone-b: rgba(255, 149, 56, 0.18);
  --tone-glow: rgba(255, 215, 90, 0.28);
}

.tone-6 {
  --tone-a: rgba(204, 104, 255, 0.24);
  --tone-b: rgba(255, 23, 200, 0.18);
  --tone-glow: rgba(204, 104, 255, 0.3);
}

.hf-banner > * {
  position: relative;
  z-index: 1;
}

.hf-banner__tag {
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.hf-banner__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px;
}

.hf-banner__title {
  font-size: 14px;
  font-weight: 700;
}

.hf-banner__meta {
  font-size: 11px;
  color: #e5e1f1;
}

.hf-banner__slot {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.hf-banner--juicy {
  justify-content: center;
  height: var(--vcup-top-ad-height, 104px);
  min-height: var(--vcup-top-ad-height, 104px);
  padding: 0;
  background: #111217;
}

.hf-banner--juicy::before,
.hf-banner--juicy::after {
  display: none;
}

.juicy-top-slot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: var(--vcup-top-ad-height, 104px);
  min-height: var(--vcup-top-ad-height, 104px);
  overflow: hidden;
}

.juicy-top-slot > ins,
.juicy-top-slot > iframe {
  display: block !important;
  width: 300px !important;
  height: 112px !important;
  max-width: none !important;
  transform: scale(var(--vcup-top-ad-scale, 1));
  transform-origin: top center;
}

.juicy-top-slot > ins iframe,
.juicy-top-slot > ins img,
.juicy-top-slot > iframe img {
  display: block !important;
  width: 300px !important;
  height: 112px !important;
  max-width: none !important;
  object-fit: contain !important;
}

.banner-word-decoration {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #353535;
  background: #161518;
  color: #857dff;
  font-size: 12px;
}

.return-strip,
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.return-strip {
  align-items: center;
  color: var(--muted-2);
  font-size: 11px;
}

.return-strip__label {
  color: #d7d7e5;
}

.return-strip__item,
.stats-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.return-strip__item {
  color: #e8e7ef;
}

.home-tabs,
.tag-grid_wrap,
.filter-tags_wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.home-tabs::-webkit-scrollbar,
.tag-grid_wrap::-webkit-scrollbar,
.filter-tags_wrap::-webkit-scrollbar {
  display: none;
}

.home-tabs {
  margin-bottom: 2px;
}

.home-tabs__item,
.tag-grid_wrap__item,
.filter-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

.home-tabs__item.is-active {
  color: var(--accent);
}

.home-tabs__item.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.tag-grid_wrap__item {
  border-radius: 999px;
  background: #17181d;
  border: 1px solid var(--line-soft);
}

.tag-grid_wrap__item:first-child {
  color: #fff;
}

.filter-name.is-active {
  color: var(--accent);
}

.loop-block {
  margin-bottom: 14px;
}

.loop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.loop-head__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.loop-head__meta {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.loop-head--video {
  margin-top: 12px;
}

.hkv-container.class2 {
  margin-bottom: 2px;
}

.hk-list.cl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.hk-list .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.item-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #222530, #16181f);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-slot {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.item-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.hk-list .item--matrix {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-item-box-small {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: 125px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #17181d;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-media .v-item-box-small {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.v-item-box-small__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 6px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, var(--tone-a, rgba(255, 23, 200, 0.22)), var(--tone-b, rgba(133, 125, 255, 0.16)));
}

.v-item-box-small__fallback::after {
  content: "";
  position: absolute;
  inset: auto -20px -24px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone-glow, rgba(255, 23, 200, 0.28)), transparent 72%);
}

.v-item-box-small__fallback .item-slot,
.v-item-box-small__fallback .item-title {
  position: relative;
  z-index: 1;
}

.v-item-box-small__fallback .item-slot {
  top: auto;
  left: auto;
  align-self: flex-start;
}

.v-item-box-small__fallback .item-title {
  width: 100%;
}

.v-item-box-small__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block !important;
  overflow: hidden;
  width: 125px !important;
  height: 125px !important;
  min-width: 125px !important;
  min-height: 125px !important;
  border: 0;
  background: transparent;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(var(--vcup-matrix-scale, 1));
  transform-origin: center center;
}

.v-item-box-small ins,
.v-item-box-small iframe,
.v-item-box-small img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.v-item-box-small ins,
.v-item-box-small img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.v-item-box-small iframe {
  width: 125px !important;
  height: 125px !important;
  min-height: 125px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.grid-wrap-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.video-item {
  overflow: hidden;
  position: relative;
}

.video-item .mask {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.post-pic {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 171.5 / 94;
  border-radius: 8px;
  background: linear-gradient(180deg, #262933, #171a21);
}

.post-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity .2s ease;
}

.video-preview.is-ready {
  opacity: 1;
}

.video-item__badge,
.video-item .duration,
.video-item .view-wrap {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.video-item__badge {
  top: 6px;
  left: 6px;
}

.video-item .view-wrap {
  bottom: 6px;
  left: 6px;
}

.video-item .duration {
  right: 6px;
  bottom: 6px;
}

.video-bottom {
  display: flex;
  flex-direction: column;
  padding: 4px 1px 0;
}

.video-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.title {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.ellipsis {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-end-marker {
  height: 1px;
}

.compliance-footer {
  margin: 18px 0 20px;
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 231, 239, 0.72);
  font-size: 10px;
  line-height: 1.55;
}

.compliance-footer p {
  margin: 0 0 8px;
}

.compliance-footer p:last-child {
  margin-bottom: 0;
}

.compliance-footer strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.compliance-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.app-nav_footer.keep-px {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100vw, 375px);
  z-index: 90;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96), rgba(0, 0, 0, 0.94));
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
  overflow: hidden;
}

.footer-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.footer-nav {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.footer-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
}

.footer-item__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.footer-item.is-active {
  color: #fff;
}

.footer-item.is-active .footer-item__dot {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 359px) {
  .site-home__shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-tabs__item,
  .tag-grid_wrap__item,
  .filter-name {
    padding: 0 10px;
  }

  .app-download-btn {
    min-width: 94px;
  }
}

@media (min-width: 900px) {
  .site-wrap {
    width: min(100vw, 420px);
  }

  .site-shell-header {
    width: min(100vw, 420px);
  }

  .app-nav_footer.keep-px {
    width: min(100vw, 420px);
  }
}

body.is-search-open {
  overflow: hidden;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.search-modal__panel {
  position: absolute;
  right: 50%;
  top: 0;
  width: min(100vw, 375px);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 18px;
  background:
    linear-gradient(180deg, rgba(21, 22, 27, 0.98), rgba(7, 8, 11, 0.98)),
    radial-gradient(circle at top left, rgba(133, 125, 255, 0.24), transparent 34%);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  transform: translate(50%, -100%);
  transition: transform 0.24s ease;
}

body.is-search-open .search-modal {
  pointer-events: auto;
}

body.is-search-open .search-modal__backdrop {
  opacity: 1;
}

body.is-search-open .search-modal__panel {
  transform: translate(50%, 0);
}

@media (min-width: 900px) {
  .search-modal__panel {
    width: min(100vw, 420px);
  }
}

.search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.search-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.search-form--modal {
  padding: 0;
  background: transparent;
  border: 0;
}

.search-modal__tips {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.search-bar-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #15161b;
  color: #fff;
  cursor: pointer;
}

.search-bar-button__icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  flex: 0 0 auto;
}

.search-bar-button__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(45deg);
}

.search-bar-button__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-bar-button__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.home-focus-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 23, 200, 0.12), rgba(133, 125, 255, 0.14)),
    rgba(19, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-focus-panel__copy {
  flex: 1;
  min-width: 0;
}

.home-focus-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.home-focus-panel__title {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.home-focus-panel__desc {
  margin: 0;
  color: #d3d2dc;
  font-size: 12px;
  line-height: 1.55;
}

.home-focus-panel__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 112px;
}

.home-focus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 1.35;
}

.home-focus-chip--soft {
  color: var(--muted-2);
}

.home-focus-chip--warn {
  background: rgba(255, 149, 56, 0.16);
  color: #ffd2a4;
}

.tag-grid_wrap__item.is-active,
.filter-name.is-active {
  background: linear-gradient(90deg, rgba(133, 125, 255, 0.24), rgba(255, 23, 200, 0.22));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tag-grid_wrap__item.is-active::after,
.filter-name.is-active::after {
  content: "";
  position: absolute;
  inset: auto 10px 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

@media (max-width: 359px) {
  .home-focus-panel {
    flex-direction: column;
  }

  .home-focus-panel__aside {
    width: 100%;
    align-items: stretch;
  }
}
