/* Marketplace PlugBSB */
.mp-page { padding: 188px 5vw 72px; max-width: 1180px; margin: 0 auto; }
.home-feature {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.home-feature-player {
  width: min(960px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(0, 232, 122, 0.32);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 42px rgba(0, 232, 122, 0.14);
  background: #000;
  display: block;
}
@media (max-width: 900px) {
  .home-feature-player {
    width: min(380px, 88vw);
    aspect-ratio: 9 / 16;
  }
}
.mp-kicker { color: var(--green); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .65rem; margin-bottom: .45rem; }
.mp-page h1 { font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.18; margin-bottom: .5rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mp-page h1 em { font-style: italic; color: var(--green); }
.mp-lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.1rem; font-size: .95rem; line-height: 1.45; }

.mp-hero { margin-bottom: 1.2rem; }
.mp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.1rem; }
.mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 680px; }
.mp-audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1.8rem; }
.mp-audience { border: 1px solid var(--border); border-radius: 22px; padding: 22px 22px 18px; min-width: 0; }
.mp-audience--renter { background: linear-gradient(180deg, rgba(0,232,122,.1), rgba(18,23,27,.92)); }
.mp-audience--owner { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(18,23,27,.92)); }
.mp-audience h1, .mp-audience h2, .mp-catalog-title, .mp-owner-band h2 {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.2; margin: 0 0 .45rem; letter-spacing: -.02em;
}
.mp-audience .mp-lead { margin-bottom: .9rem; }
.mp-audience .mp-stats { max-width: none; }
.mp-stats--one { grid-template-columns: 1fr; max-width: 240px; }
.mp-catalog { padding-top: .4rem; border-top: 1px solid var(--border); }
.mp-owner-band {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  border: 1px dashed rgba(0,232,122,.28); border-radius: 20px; padding: 18px 20px;
  background: rgba(0,232,122,.05);
}
.mp-owner-band .mp-lead { margin: 0; max-width: 36rem; }
.mp-stat { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.mp-stat strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--green); overflow-wrap: anywhere; }
.mp-stat span { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; }

.mp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 1.5rem; align-items: end; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.mp-toolbar input, .mp-toolbar select, .mp-form input, .mp-form select, .mp-form textarea {
  width: 100%; background: var(--dark3); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}
.mp-toolbar label, .mp-form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 0; flex: 1; min-width: 180px; }
.mp-toolbar label { margin: 0; }
.mp-toolbar button { height: 46px; }

.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mp-card { background: linear-gradient(180deg, #1b2128, #12171b); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; transition: transform .22s ease, border-color .22s, box-shadow .22s; }
.mp-card:hover { transform: translateY(-6px); border-color: rgba(0,232,122,.4); box-shadow: 0 22px 48px rgba(0,0,0,.42); }
.mp-card-photo { position: relative; aspect-ratio: 16/10; background: #0c1012; overflow: hidden; }
.mp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .4s ease; }
.mp-card:hover .mp-card-photo img { transform: scale(1.07); }
.mp-card:hover .mp-advertiser-badge img { transform: none; }
.mp-card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(8,12,14,.82)); pointer-events: none; }
.mp-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(11,16,18,.78); color: var(--green); border: 1px solid rgba(0,232,122,.3); backdrop-filter: blur(8px); border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 700; }
.mp-card-badge.is-wa { color: #7dffb5; border-color: rgba(37,211,102,.35); }
.mp-advertiser-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  background: rgba(11,16,18,.86); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 3px 10px 3px 3px; color: #fff; font-size: .72rem; font-weight: 600;
}
.mp-advertiser-badge img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  transform: none; flex: 0 0 auto; background: #1a1f24;
}
.mp-advertiser-badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-seller { display: flex; align-items: center; gap: 12px; margin: .55rem 0 1rem; padding: 10px 12px; background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: 16px; }
.mp-seller img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: 0 0 auto; background: #1a1f24; }
.mp-seller strong { display: block; font-size: .95rem; }
.mp-seller span { color: var(--muted); font-size: .78rem; }
.mp-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.mp-card-title { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-meta { color: var(--muted); font-size: .82rem; }
.mp-price { font-weight: 800; color: var(--green); font-size: 1.02rem; letter-spacing: -.01em; margin-top: auto; }
.mp-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.mp-chip { display: inline-block; background: rgba(0,232,122,.12); color: var(--green); border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 600; }
.mp-chip--muted { background: rgba(255,255,255,.08); color: var(--muted); }
.mp-chip--wa { background: rgba(37,211,102,.16); color: #7dffb5; }

.mp-warn { background: rgba(255,196,0,.08); border: 1px solid rgba(255,196,0,.25); color: #f4d27a; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin: 1rem 0; }
.mp-form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; max-width: 760px; }
.mp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.mp-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); gap: 24px; align-items: start; }
.mp-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 0; }
.mp-gallery-main { border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; background: #0c1012; border: 1px solid var(--border); }
.mp-gallery-main img, .mp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mp-thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; min-height: 72px; background: #0c1012; padding: 0; cursor: pointer; }
.mp-thumbs button.is-on { border-color: var(--green); }
.mp-detail-side { position: sticky; top: 132px; background: linear-gradient(180deg, #1b2128, #14191d); border: 1px solid var(--border); border-radius: 22px; padding: 18px; min-width: 0; }
.mp-detail-side h1 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: .45rem 0 .4rem; }
.mp-detail-side .mp-lead { font-size: .9rem; margin-bottom: 1rem; }
.mp-detail-price { font-family: var(--font-head); font-size: 1.4rem; color: var(--green); line-height: 1.2; margin: .4rem 0 1rem; overflow-wrap: anywhere; }
.mp-detail-price small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

.mp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1rem 0 1.1rem; }
.mp-spec div { background: rgba(0,0,0,.22); border-radius: 14px; padding: 12px 13px; border: 1px solid var(--border); }
.mp-spec strong { display: block; font-size: 1.02rem; }
.mp-chat { display: grid; grid-template-rows: 1fr auto; min-height: 62vh; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.mp-chat-log { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mp-bubble { max-width: 75%; padding: 10px 12px; border-radius: 14px; background: var(--dark3); }
.mp-bubble.is-me { margin-left: auto; background: rgba(0,232,122,.16); }
.mp-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.mp-chat-form textarea { flex: 1; min-height: 48px; resize: none; }
.mp-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 1.2rem 0 1.8rem; }
.mp-empty { color: var(--muted); padding: 40px 0; }
.mp-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mp-slot { border: 1px dashed var(--border); border-radius: 14px; padding: 12px; text-align: center; background: var(--dark3); }
.mp-slot img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.mp-camera { position: relative; max-width: 420px; }
.mp-camera video, .mp-camera canvas { width: 100%; border-radius: 16px; background: #000; }
.mp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 1.4rem; }
.mp-plan { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: start; background: var(--dark3); border: 1px solid var(--border); border-radius: 16px; padding: 16px; cursor: pointer; }
.mp-plan:has(input:checked) { border-color: rgba(0,232,122,.45); box-shadow: 0 0 0 1px rgba(0,232,122,.25); }
.mp-plan input { margin-top: 4px; }
.mp-plan strong { grid-column: 2; font-size: 1.05rem; }
.mp-plan span { grid-column: 2; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.mp-plan em { font-style: normal; color: var(--green); }

.mp-plan-modal { z-index: 1250; }
.mp-plan-modal-panel { width: min(920px, 100%); }
.mp-plan-modal-lead { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; line-height: 1.45; }
.mp-plan-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-plan-choice { background: var(--dark3); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mp-plan-choice h4 { font-family: var(--font-head); font-size: 1.05rem; margin: 0; line-height: 1.25; }
.mp-plan-choice ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.mp-plan-choice-tag { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.mp-plan-choice-tag.is-wa { color: #7dffb5; }
.mp-plan-choice-price { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--green); }
.mp-plan-choice-price small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.mp-price-promo-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.25; }
.mp-price-was { color: var(--muted) !important; font-weight: 500; text-decoration: line-through; opacity: .75; font-size: .95rem; }
.mp-price-promo { color: var(--green); font-weight: 700; font-size: 1.05em; }
.mp-price-promo strong { letter-spacing: .06em; font-weight: 800; }
.mp-stat strong { line-height: 1.35; }
.mp-stat strong .mp-price-promo-wrap { gap: 2px; }
.mp-stat strong .mp-price-was { font-size: .9rem; }
.mp-plan-choice-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.mp-plan-choice .btn-primary, .mp-plan-choice .btn-secondary { margin-top: auto; justify-content: center; text-align: center; }

@media (max-width: 900px) {
  .mp-detail { grid-template-columns: 1fr; }
  .mp-detail-side { position: static; }
  .mp-stats { grid-template-columns: 1fr; }
  .mp-plan-modal-grid { grid-template-columns: 1fr; }
  .mp-audiences { grid-template-columns: 1fr; }
  .page-home .mp-page { padding-top: 308px; }
}
@media (max-width: 800px) {
  .mp-page { padding-top: 118px; }
  .mp-form-row, .mp-gallery, .mp-plans { grid-template-columns: 1fr; }
  .mp-thumbs { grid-template-columns: repeat(3, 1fr); }
}
