/* SYPOWER 灵感广场 — original chrome, official look (not official CSS) */

.page-app[data-menu="linggan"] .sy-insp-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sy-insp-filter-title {
  padding: .45rem .85rem .15rem;
  font-size: .78rem;
  color: #8a8f96;
  letter-spacing: .02em;
}

.sy-insp-search-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem .45rem;
}

.sy-insp-search-row input,
#pane-tags #tag-search {
  flex: 1;
  min-width: 0;
  height: 1.85rem;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .45rem;
  padding: 0 .6rem;
  font-size: .75rem;
  color: #e8eaed;
  outline: none;
}

.sy-insp-search-row input::placeholder,
#pane-tags #tag-search::placeholder {
  color: #6d737a;
}

.sy-insp-search-row input:focus,
#pane-tags #tag-search:focus {
  border-color: rgba(212, 168, 60, .45);
}

.sy-insp-confirm,
#btn-insp-confirm {
  flex-shrink: 0;
  height: 1.85rem;
  padding: 0 .7rem;
  border-radius: .4rem;
  border: none;
  background: linear-gradient(180deg, #d4a017 0%, #c08a14 100%);
  color: #1a1204;
  font-size: .75rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 220, 120, .25) inset;
}

.sy-insp-confirm:hover,
#btn-insp-confirm:hover {
  filter: brightness(1.08);
}

.sy-insp-selbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .1rem .75rem .35rem;
  min-height: 1.6rem;
}

.sy-insp-count {
  font-size: .72rem;
  color: #8a8f96;
}

.sy-insp-clear {
  appearance: none;
  border: none;
  background: #3a1c1c;
  color: #d37a7a;
  font-size: .7rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.3;
}

.sy-insp-clear:hover { background: #4a2222; color: #e8a0a0; }
.sy-insp-clear[hidden] { display: none !important; }

.sy-insp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: 0 .7rem .4rem;
}

.sy-insp-chips:empty { display: none; }

.sy-insp-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .08rem .4rem .08rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 60, .7);
  background: rgba(40, 32, 12, .55);
  color: #e8c76a;
  font-size: .7rem;
  line-height: 1.4;
  cursor: pointer;
}

.sy-insp-chip .x {
  font-size: .85rem;
  opacity: .85;
  line-height: 1;
}

.sy-insp-chip:hover { background: rgba(60, 46, 14, .8); }

.sy-insp-cats,
#pane-tags #tag-cloud.sy-insp-cats {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: .15rem 0 .6rem;
  gap: 0;
  flex-wrap: nowrap;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.sy-insp-cat {
  display: flex;
  flex-direction: column;
}

.sy-insp-cat-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .42rem .7rem .42rem .8rem;
  border: 0;
  background: transparent;
  color: #e6e8ec;
  font-size: .84rem;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}

.sy-insp-cat-row:hover { background: rgba(255, 255, 255, .04); }

.sy-insp-cat.is-on > .sy-insp-cat-row {
  color: #e8c76a;
}

.sy-insp-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sy-insp-ico svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.sy-insp-cat-row .sy-insp-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sy-insp-chev {
  width: .85rem;
  height: .85rem;
  flex-shrink: 0;
  color: #6a7078;
  transition: transform .15s ease;
}

.sy-insp-cat.is-open > .sy-insp-cat-row .sy-insp-chev {
  transform: rotate(90deg);
}

.sy-insp-cat.is-on > .sy-insp-cat-row .sy-insp-chev {
  color: #d4a84b;
}

.sy-insp-sub {
  display: none;
  flex-direction: column;
  padding: 0 0 .15rem .4rem;
}

.sy-insp-cat.is-open > .sy-insp-sub { display: flex; }

.sy-insp-sub .sy-insp-cat-row {
  padding: .32rem .7rem .32rem 1.6rem;
  font-size: .78rem;
  color: #c5c8ce;
}

.sy-insp-sub .sy-insp-cat.is-on > .sy-insp-cat-row {
  color: #e8c76a;
}

.sy-insp-sub .sy-insp-sub .sy-insp-cat-row {
  padding-left: 2.2rem;
  font-size: .74rem;
}

/* ---- Main toolbar restyle (linggan page only) ---- */
.page-app[data-menu="linggan"] .insp-chrome {
  padding: 3.25rem .7rem .4rem;
}

.page-app[data-menu="linggan"] .insp-toolbar {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: nowrap;
  padding: 0 .15rem .65rem .2rem;
}

.page-app[data-menu="linggan"] .insp-tabs {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.page-app[data-menu="linggan"] .insp-tabs button {
  padding: .32rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  color: #d0d4da;
  background: transparent;
  border: none;
  font-weight: 450;
}

.page-app[data-menu="linggan"] .insp-tabs button.is-on {
  background: #00c4d8;
  color: #062024;
  font-weight: 650;
}

.page-app[data-menu="linggan"] .insp-types,
.page-app[data-menu="linggan"] .insp-price {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: .55rem;
}

.page-app[data-menu="linggan"] .insp-types button,
.page-app[data-menu="linggan"] .insp-price button {
  padding: .28rem .62rem;
  border-radius: 999px;
  font-size: .8rem;
  color: #9aa0a8;
  background: transparent;
  border: none;
}

.page-app[data-menu="linggan"] .insp-types button.is-on,
.page-app[data-menu="linggan"] .insp-price button.is-on {
  background: rgba(255, 255, 255, .08);
  color: #f2f4f7;
}

.page-app[data-menu="linggan"] .insp-price button[data-free="all"] {
  display: none;
}

.page-app[data-menu="linggan"] .insp-sort {
  margin-left: auto;
  margin-right: .2rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: #c8cdd3;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}

.page-app[data-menu="linggan"] .insp-sort svg {
  width: .9rem;
  height: .9rem;
  opacity: .85;
}

/* ---- Masonry cards ---- */
.page-app[data-menu="linggan"] .insp-grid {
  columns: 6;
  column-gap: .5rem;
  padding: 0 .1rem 2.2rem;
}

.page-app[data-menu="linggan"] .insp-grid .insp-card,
.page-app[data-menu="linggan"] .insp-grid .sy-insp-card {
  break-inside: avoid;
  margin-bottom: .5rem;
  border-radius: .7rem;
  overflow: hidden;
  background: #141416;
  border: none;
  position: relative;
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.page-app[data-menu="linggan"] .insp-grid .insp-card img,
.page-app[data-menu="linggan"] .insp-grid .sy-insp-card img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.page-app[data-menu="linggan"] .insp-card .cap,
.page-app[data-menu="linggan"] .sy-insp-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem .6rem .55rem;
  background: linear-gradient(to top, rgba(8, 8, 10, .92) 0%, rgba(8, 8, 10, .62) 46%, transparent 100%);
  color: #fff;
  pointer-events: none;
}

.page-app[data-menu="linggan"] .insp-card .cap .t,
.page-app[data-menu="linggan"] .sy-insp-card .cap .t {
  font-size: .78rem;
  font-weight: 550;
  line-height: 1.4;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-app[data-menu="linggan"] .insp-card .tags,
.page-app[data-menu="linggan"] .sy-insp-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}

.page-app[data-menu="linggan"] .insp-card .tags .chip,
.page-app[data-menu="linggan"] .sy-insp-card .tags .chip {
  pointer-events: none;
  font-size: .62rem;
  padding: .08rem .38rem;
  border-radius: .28rem;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(0, 196, 216, .45);
  color: #5ad0de;
  line-height: 1.3;
}

.page-app[data-menu="linggan"] .insp-card .meta,
.page-app[data-menu="linggan"] .sy-insp-card .meta {
  display: none; /* official cards do not show counts */
}

.page-app[data-menu="linggan"] .sy-insp-heart {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-app[data-menu="linggan"] .sy-insp-heart svg {
  width: 1.15rem;
  height: 1.15rem;
}

.page-app[data-menu="linggan"] .sy-insp-heart.is-on {
  color: #ff6b81;
}

.page-app[data-menu="linggan"] .sy-insp-badge {
  position: absolute;
  top: .45rem;
  left: .45rem;
  font-size: .62rem;
  padding: .08rem .35rem;
  border-radius: .25rem;
  background: rgba(0, 0, 0, .5);
  color: #f0f2f5;
  z-index: 2;
  pointer-events: none;
}

.page-app[data-menu="linggan"] .sy-insp-badge.is-paid {
  background: rgba(212, 168, 60, .85);
  color: #1a1204;
}

.page-app[data-menu="linggan"] .load-more-wrap {
  display: flex;
  justify-content: center;
  padding: .2rem 0 1.4rem;
}

.page-app[data-menu="linggan"] .btn-load-more {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #c8cdd3;
}

.page-app[data-menu="linggan"] .empty-pane {
  column-span: all;
  text-align: center;
  padding: 3rem 1rem;
  color: #8a8f96;
}

@media (max-width: 1400px) {
  .page-app[data-menu="linggan"] .insp-grid { columns: 5; }
}
@media (max-width: 1100px) {
  .page-app[data-menu="linggan"] .insp-grid { columns: 4; }
}
@media (max-width: 860px) {
  .page-app[data-menu="linggan"] .insp-grid { columns: 3; }
  .page-app[data-menu="linggan"] .insp-toolbar { padding-right: 4.5rem; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .page-app[data-menu="linggan"] .insp-grid { columns: 2; }
}

.page-app[data-menu="linggan"] .insp-card .cap .t,
.page-app[data-menu="linggan"] .sy-insp-card .cap .t {
  line-clamp: 2;
}

.page-app[data-menu="linggan"] .insp-grid.sy-insp-masonry {
  display: flex;
  columns: auto;
  column-count: auto;
  column-gap: 0;
  gap: .5rem;
  padding: 0 .1rem 2.2rem;
  align-items: flex-start;
}

.sy-insp-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.page-app[data-menu="linggan"] .insp-grid.sy-insp-masonry .insp-card,
.page-app[data-menu="linggan"] .insp-grid.sy-insp-masonry .sy-insp-card {
  margin-bottom: 0;
  width: 100%;
}
