/* /media only. A creator's own website (no best2world menu): own top bar, big cover, round photo, cinema video,
   Spotify-style music with a mini player, bento photos, product sheet.
   DS4 - each theme is its own world:
     Dark Premium  = black + gold, sharp      Light Clean = white, lots of space, teal
     Colorful      = gradient cover, round    Royal Gold / Neon Night = premium themes
   The visitor's 🌙/☀️ switch still works; "Light Clean" opens in light mode by default. */

.mp, .mp-top { --mp-accent: #FFC107; --mp-accent-2: #FFD54F; --mp-on: #0A0A0F; --mp-grad: linear-gradient(135deg, #FFC107, #FF8A00); --mp-cover: linear-gradient(120deg, #1a1405, #0A0A0F 60%, #2a1f00); --mp-r: 16px; --mp-font: "Inter", "Hind Siliguri", sans-serif; }
.mp[data-media-theme="light"], .mp-top[data-media-theme="light"] { --mp-accent: #0E7C86; --mp-accent-2: #0A626A; --mp-on: #fff; --mp-grad: linear-gradient(135deg, #0E7C86, #22B8C4); --mp-cover: linear-gradient(120deg, #D8F1F3, #F6F8FA 55%, #CFE9EC); --mp-r: 14px; }
.mp[data-media-theme="colorful"], .mp-top[data-media-theme="colorful"] { --mp-accent: #E11D74; --mp-accent-2: #C0155F; --mp-on: #fff; --mp-grad: linear-gradient(135deg, #FF3D7F, #FF9F1C 50%, #7C3AED); --mp-cover: linear-gradient(120deg, #FF3D7F, #FF9F1C 45%, #7C3AED); --mp-r: 26px; }
.mp[data-media-theme="royal"], .mp-top[data-media-theme="royal"] { --mp-accent: #C9A227; --mp-accent-2: #A8851B; --mp-on: #14072B; --mp-grad: linear-gradient(135deg, #C9A227, #6D28D9); --mp-cover: linear-gradient(120deg, #2B0F54, #14072B 55%, #5B3A00); --mp-r: 18px; --mp-font: Georgia, "Hind Siliguri", serif; }
.mp[data-media-theme="neon"], .mp-top[data-media-theme="neon"] { --mp-accent: #22D3EE; --mp-accent-2: #06B6D4; --mp-on: #04121A; --mp-grad: linear-gradient(135deg, #22D3EE, #E879F9); --mp-cover: linear-gradient(120deg, #04121A, #1E0B2E 50%, #003B46); --mp-r: 12px; }
[data-theme="light"] .mp[data-media-theme="dark"], [data-theme="light"] .mp[data-media-theme="royal"], [data-theme="light"] .mp-top[data-media-theme="dark"], [data-theme="light"] .mp-top[data-media-theme="royal"] { --mp-accent: #A86F00; --mp-accent-2: #8A5A00; --mp-on: #fff; }
[data-theme="light"] .mp[data-media-theme="neon"], [data-theme="light"] .mp-top[data-media-theme="neon"] { --mp-accent: #0E7490; --mp-accent-2: #155E75; --mp-on: #fff; }
[data-theme="dark"] .mp[data-media-theme="light"] { --mp-accent: #2BB7C3; --mp-accent-2: #5ED0D9; --mp-on: #04191B; }
body.media-body { background-image: none; }
.mp .btn-solid, .mp-top .btn-solid { background: var(--mp-accent); color: var(--mp-on); box-shadow: none; border-color: transparent; }
.mp .btn-solid:hover, .mp-top .btn-solid:hover { background: var(--mp-accent-2); }
.mp a:not(.btn):not(.soc):not(.hl) { color: var(--mp-accent); }
.mp h1, .mp h2, .mp h3 { font-family: var(--mp-font); }
.mp[data-media-theme="colorful"] .btn { border-radius: 999px; }

/* ---------- H1/H3: own top bar ---------- */
.mp-top { position: sticky; top: 0; z-index: 30; background: var(--head-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.mp-top-row { display: flex; align-items: center; gap: .6rem; min-height: 60px; transition: min-height .2s var(--ease, ease); }
.mp-top.slim .mp-top-row { min-height: 50px; }
.mp-brand { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1 1 auto; text-decoration: none; color: var(--text) !important; }
.mp-logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.mp-top.slim .mp-logo { height: 30px; }
.mp-brand-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.mp-brand-name { font: 700 1rem/1.2 var(--mp-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-top-mid { display: flex; align-items: center; gap: .35rem; flex: none; }
.mp-top-mid .theme-btn { min-width: 40px; }
.mp-top-act { display: flex; gap: .35rem; flex: none; }
@media (max-width: 420px) { .hide-xs { display: none; } .mp-top-mid .lang-sw a { padding: .2rem .45rem; } }
.mp-tabs { border-top: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .25s var(--ease, ease); }
.mp-top.slim .mp-tabs { max-height: 50px; }
.mp-tabs-row { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.mp-tabs-row::-webkit-scrollbar { display: none; }
.mp-tabs a { flex: none; padding: .6rem .85rem; color: var(--muted); text-decoration: none !important; font: 600 .92rem/1.3 var(--mp-font); border-bottom: 3px solid transparent; }
.mp-tabs a:hover, .mp-tabs a.on { color: var(--text) !important; border-bottom-color: var(--mp-accent); }
.owner-tip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 14px; border: 1px dashed rgba(255, 193, 7, .6); background: rgba(255, 193, 7, .08); font-size: .9rem; }
.owner-tip span { flex: 1 1 200px; }
.tip-x { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }

/* ---------- hero: big cover + round photo ---------- */
.mp-hero { position: relative; }
.mp-cover { position: relative; height: clamp(180px, 36vw, 400px); background: var(--mp-cover); background-size: cover; background-position: center; }
.mp[data-media-theme="colorful"] .mp-cover { border-radius: 0 0 36px 36px; }
.mp-cover-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg) 100%); }
.mp-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: .6rem; margin-top: -72px; }
.mp-avatar { width: 138px; height: 138px; border-radius: 50%; overflow: hidden; border: 5px solid var(--bg); box-shadow: 0 0 0 3px var(--mp-accent), 0 18px 40px rgba(0, 0, 0, .35); background: var(--mp-grad); display: grid; place-items: center; flex: none; }
.mp[data-media-theme="neon"] .mp-avatar { box-shadow: 0 0 0 3px var(--mp-accent), 0 0 34px rgba(34, 211, 238, .55); }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-avatar span { font: 700 3.4rem/1 "Hind Siliguri", sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.mp-id { min-width: 0; max-width: 100%; }
.mp-name { margin: .2rem 0 .1rem; font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.25; }
.mp-verified { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 50%; background: #1D9BF0; color: #fff; font-size: .6em; vertical-align: .25em; }
.mp-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; color: var(--muted); margin: 0 0 .6rem; }
.mp-handle { color: var(--faint); }
.mp-socials, .mp-foot-soc { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0; margin: 0; }
.soc { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; transition: transform .15s ease, border-color .15s ease; }
@media (hover: hover) { .soc:hover { transform: translateY(-2px); border-color: var(--mp-accent); } }
.soc::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--mp-accent)); }
.soc-facebook { --c: #1877F2; } .soc-instagram { --c: #E1306C; } .soc-youtube { --c: #FF0000; } .soc-tiktok { --c: #25F4EE; } .soc-whatsapp { --c: #25D366; } .soc-telegram { --c: #26A5E4; } .soc-website { --c: var(--mp-accent); }
.mp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.mp-actions .btn { flex: 1 1 140px; max-width: 240px; }
@media (min-width: 860px) {
  .mp-head { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: end; gap: 1.4rem; margin-top: -86px; }
  .mp-avatar { width: 170px; height: 170px; }
  .mp-meta, .mp-socials { justify-content: flex-start; }
  .mp-actions { flex-direction: column; align-items: stretch; }
  .mp-actions .btn { flex: none; max-width: none; }
}
/* D5: highlight circles */
.mp-hl { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem .9rem; margin: 1.3rem 0 .3rem; }
.hl { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 66px; text-decoration: none; color: var(--text); }
.hl-ring { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: var(--mp-grad); transition: transform .15s var(--ease, ease); }
.hl-ring span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); font-size: 1.4rem; border: 2px solid var(--bg); }
.hl:active .hl-ring { transform: scale(.94); }
.hl-l { font-size: .78rem; font-weight: 600; text-align: center; }
.mp-numbers { text-align: center; color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }

/* ---------- sections ---------- */
.mp-body { padding-top: 1.6rem; padding-bottom: 1rem; }
.mp-sec { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--head-h, 58px) + 16px); }
.mp-h { display: flex; align-items: center; gap: .55rem; font-size: 1.4rem; margin-bottom: 1rem; }
.mp-h-ico { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--mp-accent) 18%, transparent); font-size: 1.1rem; }
.mp-sub { font-size: 1rem; color: var(--muted); margin: 1.2rem 0 .6rem; }
.mp-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--mp-r) + 4px); padding: 1.2rem; box-shadow: var(--shadow); min-width: 0; }
.mp-card h2 { font-size: 1.15rem; }
.mp-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 900px) { .mp-about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.mp-about-text { line-height: 1.8; overflow-wrap: anywhere; }
.mp-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pay-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.pay-row strong { flex: 1; font-size: 1.05rem; letter-spacing: .02em; }
.pay-logo { padding: .15rem .55rem; border-radius: 8px; color: #fff; font-weight: 700; font-size: .82rem; }
.pay-bkash { background: #E2136E; } .pay-nagad { background: #EC1C24; }
.mp-share { text-align: center; }
.mp-qr { background: #fff; padding: 8px; border-radius: 14px; width: 160px; height: 160px; }

/* ---------- D1: video ---------- */
.cinema { position: relative; margin: 0 auto 1.2rem; max-width: 920px; isolation: isolate; }
.cinema::before { content: ""; position: absolute; inset: 8% 4% -4%; z-index: -1; background: var(--glow, var(--mp-grad)) center / cover; filter: blur(38px) saturate(1.3); opacity: .55; border-radius: 30px; }
.cinema .vplayer { border-radius: calc(var(--mp-r) + 6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.cinema .vtitle { font-size: 1.1rem; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin-bottom: 1rem; scrollbar-width: thin; }
@media (min-width: 700px) { .reels { grid-auto-columns: 220px; } }
.reel { scroll-snap-align: start; }
.reel .vplayer { aspect-ratio: 9 / 16; max-height: none; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 600px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard { margin: 0; min-width: 0; }
.vplayer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--mp-r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.vplayer iframe, .vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vfacade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: var(--mp-grad); background-size: cover; background-position: center; display: grid; place-items: center; }
.vfacade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.vplay { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #111; font-size: 1.5rem; padding-left: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.vfacade:hover .vplay, .vfacade:focus-visible .vplay { transform: scale(1.08); }
.vsrc { position: absolute; z-index: 1; left: 10px; top: 10px; padding: .1rem .5rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 700; }
.vtitle { margin: .5rem .2rem 0; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- D2: music ---------- */
.album { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; padding: 1rem; border-radius: calc(var(--mp-r) + 4px); background: linear-gradient(135deg, color-mix(in srgb, var(--mp-accent) 22%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.album-art { flex: none; width: clamp(96px, 28vw, 150px); aspect-ratio: 1; border-radius: var(--mp-r); background: var(--mp-grad) center / cover; display: grid; place-items: center; font-size: 2.6rem; color: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.album-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.album-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.album-name { font: 800 clamp(1.2rem, 4.5vw, 1.8rem)/1.2 var(--mp-font); overflow-wrap: anywhere; }
.album-play { align-self: flex-start; margin-top: .5rem; border-radius: 999px; }
.tracks { list-style: none; margin: 0; padding: .4rem; border-radius: calc(var(--mp-r) + 4px); background: var(--surface); border: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 1.6rem 50px minmax(0, 1fr) 46px; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 14px; }
.track:hover, .track.playing { background: var(--surface-2); }
.track.playing .tr-title { color: var(--mp-accent); }
.tr-num { color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.tr-art { width: 50px; height: 50px; border-radius: 10px; background: var(--mp-grad); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-size: 1.4rem; }
.tr-main { min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.tr-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mp-accent); color: var(--mp-on); font-size: 1.05rem; cursor: pointer; padding-left: 3px; transition: transform .15s ease; }
.tr-play:active { transform: scale(.94); }
.track.playing .tr-play { padding-left: 0; }
.tr-embed { grid-column: 1 / -1; }
.tr-embed iframe { width: 100%; height: 166px; border: 0; border-radius: 12px; }
.tr-embed[data-src="spotify"] iframe { height: 152px; }
.tr-embed[data-src="youtube"] iframe { height: auto; aspect-ratio: 16 / 9; }
.miniplayer { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); animation: miniIn .25s var(--ease, ease); }
@keyframes miniIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }
.miniplayer[hidden] { display: none; }
.mini-art { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--mp-grad) center / cover; }
.mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.mini-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { display: block; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; cursor: pointer; }
.mini-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.mini-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: .95rem; }
.mini-main { background: var(--accent); color: var(--on-accent); width: 44px; height: 44px; }
body.has-mini .mp-foot { padding-bottom: 90px; }

/* ---------- D3: bento photos ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(90px, 26vw); gap: .45rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: .6rem; } }
.bento .pthumb:first-child { grid-column: span 2; grid-row: span 2; }
.bento.n1 .pthumb:first-child { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 760px) { .bento .pthumb:nth-child(6n + 4) { grid-row: span 2; } }
.pthumb { padding: 0; border: 0; border-radius: var(--mp-r); overflow: hidden; cursor: zoom-in; background: var(--surface-2); min-width: 0; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease, ease); }
@media (hover: hover) { .pthumb:hover img { transform: scale(1.05); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; border-radius: 12px; margin: 0 auto; }
.lb-cap { color: #fff; text-align: center; margin: .5rem 0 0; }
.lb-x { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- D4: shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
@media (min-width: 760px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1040px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod { min-width: 0; }
.prod-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: start; border-radius: calc(var(--mp-r) + 2px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: transform .18s var(--ease, ease); }
.prod-open:active { transform: scale(.98); }
@media (hover: hover) { .prod-open:hover { transform: translateY(-3px); border-color: var(--mp-accent); } }
.prod-img { position: relative; aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; font-size: 2.6rem; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod.sold .prod-img img { filter: grayscale(1); opacity: .6; }
.prod-badge { position: absolute; left: 8px; top: 8px; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: #22C55E; }
.prod-badge.b-sale { background: #EF4444; } .prod-badge.b-soldout { background: #6B7280; }
.prod-price { position: absolute; right: 8px; bottom: 8px; padding: .15rem .6rem; border-radius: 999px; background: var(--mp-accent); color: var(--mp-on); font: 800 .9rem/1.4 var(--mp-font); }
.prod-body { padding: .7rem .8rem .9rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.prod-title { font-weight: 700; overflow-wrap: anywhere; }
.prod-desc { color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-dlg { width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface-solid); color: var(--text); overflow: auto; }
@media (min-width: 700px) { .sheet-dlg { margin: auto; border-radius: 24px; } }
.sheet-dlg[open] { animation: sheetUp .25s var(--ease, ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-dlg::backdrop { background: rgba(0, 0, 0, .6); }
.sheet-in { position: relative; padding: 1rem 1.1rem 1.4rem; }
.ps-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; margin-bottom: .8rem; }
.ps-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-price { font: 800 1.3rem/1.3 var(--mp-font); color: var(--mp-accent); margin: 0 0 .3rem; }
.ps-btns { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.ps-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.mp-contact { max-width: 720px; }
/* ---------- F1: the creator's footer ---------- */
.mp-foot { margin-top: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }
.mp-foot-soc { margin-bottom: .8rem; }
.mp-copy { margin: 0 0 .2rem; color: var(--text); font-weight: 600; }
.mp-made { margin: 0; }
.mp-made a { color: var(--muted) !important; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---------- directory (/media) ---------- */
.dir-hero { padding: 2rem 0 1rem; }
.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 560px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.creator { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
.creator:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cr-cover { height: 96px; background: linear-gradient(120deg, #FFC107, #7C3AED); background-size: cover; background-position: center; }
.cr-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.cr-ava { width: 72px; height: 72px; border-radius: 50%; margin-top: -36px; border: 4px solid var(--bg); overflow: hidden; background: linear-gradient(135deg, #FFC107, #FF8A00); display: grid; place-items: center; font: 700 1.7rem "Hind Siliguri", sans-serif; color: #fff; }
.cr-ava img { width: 100%; height: 100%; object-fit: cover; }
.cr-name { font: 700 1.1rem/1.4 "Hind Siliguri", sans-serif; overflow-wrap: anywhere; }
.cr-meta { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.cr-feat { font-size: .75rem; }
.dir-search { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.dir-search input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: .5rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--input); color: var(--text); font: inherit; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0; }

/* ---------- editor (/media/edit) ---------- */
.me-wrap { padding-top: 1.4rem; padding-bottom: 2.5rem; }
.me-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.me-top h1 { margin: 0; }
.me-tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; scrollbar-width: thin; }
.me-tabs button { flex: none; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 .9rem "Hind Siliguri", sans-serif; cursor: pointer; }
.me-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.me-pane { display: none; }
.me-pane.on { display: block; }
.me-imgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .me-imgs { grid-template-columns: 200px minmax(0, 1fr) 220px; } }
.me-img-box { border: 1px dashed var(--line-2); border-radius: 16px; padding: .8rem; text-align: center; min-width: 0; }
.me-img-box .prev { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto .6rem; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 2rem; }
.me-img-box .prev.cover { width: 100%; height: 120px; border-radius: 12px; }
.me-img-box .prev img { width: 100%; height: 100%; object-fit: cover; }
.me-img-box .btns { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.me-img-box label.btn { margin: 0; }
.quota { margin: .4rem 0 1rem; }
.quota .progress { margin: .3rem 0; }
.item-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.item-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.item-row .ir-thumb { width: 64px; height: 40px; border-radius: 8px; background: var(--mp-grad, linear-gradient(135deg, #FFC107, #FF8A00)); background-size: cover; background-position: center; flex: none; display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 700; }
.item-row.photo .ir-thumb { width: 52px; height: 52px; }
.item-row .ir-main { flex: 1 1 160px; min-width: 0; }
.item-row input.ir-title { width: 100%; min-height: 38px; padding: .3rem .6rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); color: var(--text); font: inherit; }
.item-row .ir-sub { color: var(--muted); font-size: .8rem; margin-top: .2rem; overflow-wrap: anywhere; }
.item-row .ir-acts { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ir-acts .btn { min-height: 34px; padding: .25rem .6rem; font-size: .85rem; }
.pin-lbl { display: inline-flex !important; align-items: center; gap: .3rem; margin: 0 !important; font-size: .85rem !important; font-weight: 600; }
.upbar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .5rem 0; border: 1px solid var(--line); }
.upbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .2s ease; }
.add-box { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-top: 1rem; background: var(--surface); }
.add-box h3 { margin-bottom: .2rem; }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-top: .4rem; }
.theme-card { position: relative; display: flex !important; flex-direction: column; gap: .4rem; padding: .6rem; border: 2px solid var(--line-2); border-radius: 14px; cursor: pointer; margin: 0 !important; font-weight: 600 !important; }
.theme-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-card .sw { height: 46px; border-radius: 10px; }
.theme-card .lock { font-size: .78rem; color: var(--muted); font-weight: 500; }
.sw-dark { background: linear-gradient(120deg, #0A0A0F 55%, #FFC107); }
.sw-light { background: linear-gradient(120deg, #F6F8FA 55%, #0E7C86); border: 1px solid #ddd; }
.sw-colorful { background: linear-gradient(120deg, #FF3D7F, #FF9F1C, #7C3AED); }
.sw-royal { background: linear-gradient(120deg, #2B0F54, #C9A227); }
.sw-neon { background: linear-gradient(120deg, #04121A, #22D3EE, #E879F9); }
.prod-edit { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; align-items: start; }
.prod-edit .pimg { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 1.6rem; }
.prod-edit .pimg img { width: 100%; height: 100%; object-fit: cover; }
.me-stats .chart { width: 100%; height: auto; }
.me-stats .chart text { fill: var(--muted); font-size: 11px; }
.me-stats .chart line { stroke: var(--line); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .mini-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.me-img-box .prev.logo { width: 100%; height: 70px; border-radius: 12px; }
.me-img-box .prev.logo img { object-fit: contain; }
.up-list { list-style: none; padding: 0; margin: .6rem 0 1rem; text-align: start; display: flex; flex-direction: column; gap: .3rem; }
