/* ============================================================
   PulseLink Hub — siteapp30
   Visual language derived from st666.vip:
   glassmorphism panels, breathing gradient canvas, glowing round
   avatars, flowing gradient borders, cat-title ribbon lines,
   bottom tab navigation, floating heart particles.
   ============================================================ */

:root {
  --bg: #eaf1ff;
  --panel: rgba(255, 255, 255, .62);
  --panel-soft: rgba(255, 255, 255, .46);
  --primary: #2f7bff;
  --primary-strong: #1f6bff;
  --accent: #62b7ff;
  --text: #0f1e3a;
  --muted: #3d5a80;
  --shadow: 0 12px 28px rgba(37, 79, 152, .14);
  --shadow-strong: 0 20px 46px rgba(29, 67, 132, .2);
  --hover-shadow: 0 14px 30px rgba(47, 123, 255, .28);
  --hover-border: rgba(47, 123, 255, .44);
  --rating: #ffb800;
  --cta-gradient: linear-gradient(135deg, #2f7bff 0%, #62b7ff 100%);
  --warm-accent: rgba(255, 140, 90, .45);
  --warm-shadow: rgba(255, 140, 90, .15);
  --bg-gradient-1: rgba(56, 189, 248, .25);
  --bg-gradient-2: rgba(139, 92, 246, .22);
  --bg-gradient-3: rgba(37, 99, 235, .24);
  --radius: 16px;
  --bnav-bg: rgba(250, 248, 255, .96);
  --bnav-border: rgba(47, 123, 255, .2);
  --bnav-muted: #596980;
  --bnav-text: #182337;
}

html[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-strong: #3b82f6;
  --accent: #818cf8;
  --bg: #0f172a;
  --panel: rgba(30, 41, 59, .72);
  --panel-soft: rgba(30, 41, 59, .58);
  --text: #e8eaf6;
  --muted: #9ca3af;
  --rating: #fbbf24;
  --shadow: 0 12px 28px rgba(0, 0, 0, .4);
  --shadow-strong: 0 20px 46px rgba(0, 0, 0, .5);
  --hover-shadow: 0 14px 30px rgba(96, 165, 250, .35);
  --hover-border: rgba(96, 165, 250, .5);
  --bg-gradient-1: rgba(99, 102, 241, .18);
  --bg-gradient-2: rgba(139, 92, 246, .15);
  --bg-gradient-3: rgba(59, 130, 246, .12);
  --bnav-bg: rgba(15, 20, 32, .96);
  --bnav-border: rgba(96, 165, 250, .25);
  --bnav-muted: #8a99b0;
  --bnav-text: #dde7f5;
  --warm-accent: rgba(251, 146, 60, .55);
  --warm-shadow: rgba(251, 146, 60, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Roboto", sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(800px 500px at -15% -10%, var(--bg-gradient-1), transparent 55%),
    radial-gradient(900px 520px at 115% 10%, var(--bg-gradient-2), transparent 58%),
    radial-gradient(700px 450px at 50% 90%, var(--bg-gradient-3), transparent 52%),
    linear-gradient(160deg, #eef4ff 0%, #e8effd 48%, #edf3ff 100%);
  pointer-events: none;
  animation: plBgBreathe 12s ease-in-out infinite;
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 500px at -15% -10%, rgba(99, 102, 241, .2), transparent 55%),
    radial-gradient(800px 480px at 115% 15%, rgba(139, 92, 246, .18), transparent 58%),
    radial-gradient(700px 450px at 50% 85%, rgba(59, 130, 246, .15), transparent 52%),
    linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}
@keyframes plBgBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.02); }
}
canvas#pl-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .75; pointer-events: none; }
.pl-wm {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 50px, rgba(99, 102, 241, .18) 50px 51px),
    repeating-linear-gradient(-45deg, transparent 0 50px, rgba(139, 92, 246, .15) 50px 51px);
}
.pl-toast { display: none; }
img { -webkit-user-drag: none; user-select: none; }
a { color: var(--primary); }

/* ===== Header (floating glass bar) ===== */
.pl-header {
  position: relative; z-index: 20; overflow: visible; max-width: 1240px; margin: 10px auto 6px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(232, 242, 255, .74), rgba(214, 230, 252, .66));
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 16px 38px rgba(26, 69, 138, .16);
}
.pl-header::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(120deg, rgba(31, 111, 235, .12), transparent 60%),
    repeating-linear-gradient(90deg, rgba(15, 40, 90, .08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(15, 40, 90, .06) 0 1px, transparent 1px 18px);
  opacity: .95;
}
.pl-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(31, 111, 235, .6), transparent); opacity: .5; }
html[data-theme="dark"] .pl-header {
  background: linear-gradient(180deg, rgba(30, 41, 59, .85), rgba(30, 41, 59, .75));
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .4);
}
.pl-nav { max-width: 1200px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.pl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .6px; }
.pl-brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 20px;
  background: var(--cta-gradient); box-shadow: 0 10px 20px rgba(31, 111, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.pl-brand-word { font-size: 18px; font-weight: 900; color: var(--text); display: flex; flex-direction: column; line-height: 1.05; }
.pl-brand-word b { color: var(--primary); }
.pl-brand-word small { font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 700; }
.pl-header-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.pl-search-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(47, 123, 255, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(233, 242, 255, .7));
  color: var(--primary); cursor: pointer; display: grid; place-items: center;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 4px 12px rgba(47, 123, 255, .15);
}
html[data-theme="dark"] .pl-search-toggle { background: rgba(30, 41, 59, .7); color: var(--primary); border-color: rgba(96, 165, 250, .3); }
.pl-search-toggle:hover { transform: scale(1.08) rotate(8deg); box-shadow: 0 6px 18px rgba(47, 123, 255, .3); border-color: rgba(47, 123, 255, .5); }
.pl-search-box {
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%) scaleX(0);
  width: 260px; height: 42px; border-radius: 21px; transform-origin: right center;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border: 1px solid rgba(47, 123, 255, .3);
  box-shadow: 0 8px 24px rgba(47, 123, 255, .2);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  opacity: 0; pointer-events: none; z-index: 10;
}
html[data-theme="dark"] .pl-search-box { background: rgba(15, 23, 42, .95); border-color: rgba(96, 165, 250, .3); }
.pl-search-box.open { transform: translateY(-50%) scaleX(1); opacity: 1; pointer-events: all; }
.pl-search-input { flex: 1; height: 100%; border: none; background: transparent; font-size: 14px; color: var(--text); outline: none; font-family: inherit; }
.pl-search-input::placeholder { color: var(--muted); opacity: .6; }
.pl-search-close {
  width: 28px; height: 28px; border-radius: 50%; border: none; flex: none;
  background: rgba(47, 123, 255, .1); color: var(--primary); cursor: pointer;
  display: grid; place-items: center; transition: all .2s ease;
}
.pl-search-close:hover { background: rgba(47, 123, 255, .2); transform: rotate(90deg); }
.pl-mode {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(47, 123, 255, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(233, 242, 255, .7));
  color: var(--primary); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(47, 123, 255, .15); transition: all .3s cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="dark"] .pl-mode { background: rgba(30, 41, 59, .7); border-color: rgba(96, 165, 250, .3); }
.pl-mode:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(47, 123, 255, .3); }
.pl-mode .pl-ico-moon { display: none; }
html[data-theme="dark"] .pl-mode .pl-ico-sun { display: none; }
html[data-theme="dark"] .pl-mode .pl-ico-moon { display: inline-flex; }

/* ===== Main / sections ===== */
.pl-main, main#pl-main { position: relative; z-index: 1; }
.pl-section { max-width: 1200px; margin: 10px auto; padding: 0 20px; position: relative; z-index: 1; }
.pl-cards-scroll { position: relative; z-index: 1; }

/* ===== Carousel ===== */
.pl-carousel { max-width: 1200px; margin: 6px auto; padding: 0 20px; }
.pl-carousel-wrap {
  position: relative; overflow: hidden; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .62);
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .26));
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 26px 46px rgba(30, 78, 158, .22);
}
html[data-theme="dark"] .pl-carousel-wrap { background: linear-gradient(180deg, rgba(30, 41, 59, .6), rgba(30, 41, 59, .42)); border-color: rgba(255, 255, 255, .12); box-shadow: 0 26px 46px rgba(0, 0, 0, .45); }
.pl-slides { display: flex; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.pl-slide { min-width: 100%; min-height: 250px; height: 24vw; max-height: 340px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47, 123, 255, .16), rgba(98, 183, 255, .1) 55%, rgba(139, 92, 246, .14)); }
.pl-slide-alt { background: linear-gradient(135deg, rgba(236, 72, 153, .14), rgba(98, 183, 255, .1) 55%, rgba(47, 123, 255, .16)); }
html[data-theme="dark"] .pl-slide { background: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(30, 41, 59, .4) 55%, rgba(99, 102, 241, .26)); }
html[data-theme="dark"] .pl-slide-alt { background: linear-gradient(135deg, rgba(219, 39, 119, .24), rgba(30, 41, 59, .4) 55%, rgba(37, 99, 235, .28)); }
.pl-slide-inner { text-align: center; padding: 26px 24px; max-width: 720px; }
.pl-slide-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: var(--cta-gradient); box-shadow: 0 8px 18px rgba(47, 123, 255, .32); }
html[data-theme="dark"] .pl-slide-kicker { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.pl-slide h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; color: var(--text); letter-spacing: .4px; }
.pl-slide-sub { margin: 0; font-size: 15px; color: var(--muted); }
.pl-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .66); background: rgba(255, 255, 255, .5); color: var(--text); display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), background .34s ease, box-shadow .42s ease;
}
html[data-theme="dark"] .pl-car-btn { background: rgba(30, 41, 59, .7); color: #e2e8f0; border-color: rgba(255, 255, 255, .15); }
.pl-car-prev { left: 16px; }
.pl-car-next { right: 16px; }
.pl-car-btn:hover { transform: translateY(-50%) scale(1.08); background: rgba(255, 255, 255, .68); box-shadow: var(--hover-shadow); }
.pl-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.pl-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(15, 40, 90, .15); border: 1px solid rgba(15, 40, 90, .2); cursor: pointer; transition: all .3s ease; }
html[data-theme="dark"] .pl-dot { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .25); }
.pl-dot.active { background: var(--primary); box-shadow: 0 0 12px rgba(47, 123, 255, .5); transform: scale(1.3); }

/* ===== Marquee notice ===== */
.pl-marquee {
  width: 100%; overflow: hidden; min-height: 34px; border-radius: 14px; padding: 6px 14px; position: relative;
  background: linear-gradient(120deg, rgba(44, 115, 255, .92), rgba(89, 178, 255, .88), rgba(44, 115, 255, .92));
  background-size: 200% 100%; animation: plMarqueeGlow 4s ease infinite;
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px rgba(42, 105, 214, .28);
  display: flex; align-items: center; gap: 8px;
}
html[data-theme="dark"] .pl-marquee { background: linear-gradient(120deg, rgba(37, 99, 235, .92), rgba(96, 165, 250, .88), rgba(37, 99, 235, .92)); background-size: 200% 100%; border-color: rgba(255, 255, 255, .18); }
@keyframes plMarqueeGlow {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 100% 0; }
}
.pl-marquee::before {
  content: ""; position: absolute; inset: -1px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .4) 25%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, .4) 75%, transparent 100%);
  background-size: 200% 100%; animation: plBorderFlow 4s ease-in-out infinite; opacity: .6;
}
@keyframes plBorderFlow {
  0%, 100% { background-position: -100% 0; }
  50% { background-position: 100% 0; }
}
.pl-marquee > * { position: relative; z-index: 1; }
.pl-marquee-icon { display: inline-flex; align-items: center; color: #fff; animation: plBellRing 2.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes plBellRing {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(12deg); }
  16% { transform: rotate(-10deg); }
  24% { transform: rotate(8deg); }
  32% { transform: rotate(0deg); }
}
.pl-marquee-label { display: inline-block; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; border: 1px solid rgba(255, 255, 255, .3); flex-shrink: 0; }
.pl-marquee-text { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }

/* ===== Category ribbon title ===== */
.pl-cat-title {
  display: flex; justify-content: center; align-items: center; margin: 26px 0 14px; padding: 8px 0; font-size: 22px; font-weight: 800;
  color: var(--text); letter-spacing: .5px; position: relative; text-align: center;
}
.pl-cat-title::before,
.pl-cat-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-strong) 20%, var(--accent) 50%, var(--primary-strong) 80%, transparent);
  box-shadow: 0 2px 8px rgba(47, 123, 255, .3);
}
.pl-cat-title::before { top: 0; }
.pl-cat-title::after { bottom: 0; }
.pl-cat-tools { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 14px; }
.pl-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.pl-more { font-size: 13px; font-weight: 800; color: var(--primary); text-decoration: none; }
.pl-more:hover { text-decoration: underline; }

/* ===== Card grid + cards (st666 style) ===== */
.pl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.pl-card {
  position: relative; border-radius: 22px; padding: 10px 8px 8px; gap: 4px; align-items: center; display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(245, 250, 255, .56)) padding-box,
    linear-gradient(90deg, transparent 0%, rgba(47, 123, 255, .25) 25%, rgba(98, 183, 255, .4) 50%, rgba(47, 123, 255, .25) 75%, transparent 100%) border-box;
  background-size: 100% 100%, 200% 100%;
  background-position: 0 0, 100% 0;
  backdrop-filter: blur(12px) saturate(1.08); -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 14px 30px rgba(26, 68, 138, .13);
  border: .5px solid rgba(47, 123, 255, .15);
}
html[data-theme="dark"] .pl-card {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, .75), rgba(30, 41, 59, .65)) padding-box,
    linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, .3) 25%, rgba(129, 140, 248, .44) 50%, rgba(96, 165, 250, .3) 75%, transparent 100%) border-box;
  background-size: 100% 100%, 200% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .1);
}
a.pl-app { text-decoration: none; color: var(--text); transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1), border-color .3s ease; }
a.pl-app:hover { transform: translateY(-3px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 16px 36px var(--warm-shadow), 0 0 20px rgba(47, 123, 255, .3); border-color: var(--warm-accent); }
.pl-app > * { position: relative; z-index: 1; }
.pl-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: contain; padding: 3px; margin-top: 6px;
  border: 2px solid rgba(47, 123, 255, .35);
  box-shadow: 0 0 0 1px rgba(47, 123, 255, .15), 0 0 12px 2px rgba(47, 123, 255, .25), 0 8px 18px rgba(31, 111, 235, .18);
  flex: none; background: #eef4ff;
  animation: plAvatarGlow 2.5s ease-in-out infinite; position: relative; align-self: center;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .3s ease;
}
html[data-theme="dark"] .pl-avatar { background: #1e293b; border-color: rgba(96, 165, 250, .35); }
@keyframes plAvatarGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(47, 123, 255, .15), 0 0 12px 2px rgba(47, 123, 255, .25), 0 8px 18px rgba(31, 111, 235, .18); }
  50% { box-shadow: 0 0 0 2px rgba(47, 123, 255, .25), 0 0 18px 4px rgba(47, 123, 255, .4), 0 8px 22px rgba(31, 111, 235, .28); }
}
a.pl-app:hover .pl-avatar {
  transform: rotate(8deg) scale(1.12); animation-play-state: paused;
  border-color: rgba(47, 123, 255, .6);
  outline: 2px solid rgba(98, 183, 255, .4); outline-offset: 2px;
}
.pl-meta { width: 100%; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pl-title { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }
.pl-desc { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }
.pl-rating { display: flex; align-items: center; gap: 4px; margin-top: 2px; flex-wrap: nowrap; }
.pl-stars { display: inline-flex; gap: 1px; flex: 0 0 auto; color: var(--rating); font-size: 12px; letter-spacing: 1px; }
.pl-score { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pl-go {
  width: 100%; margin: 4px 0 0; padding: 6px 10px; border-radius: 14px; text-align: center; display: block;
  color: #fff; font-weight: 800; font-size: 12px; background: var(--cta-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 8px 18px rgba(47, 123, 255, .32); border: 1px solid rgba(255, 255, 255, .48); position: relative; overflow: hidden;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1);
  animation: plCtaPulse 2.5s ease-in-out infinite;
}
html[data-theme="dark"] .pl-go { background: linear-gradient(135deg, #2563eb, #60a5fa); }
@keyframes plCtaPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 8px 18px rgba(47, 123, 255, .32), 0 0 0 0 rgba(47, 123, 255, .4); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 10px 22px rgba(47, 123, 255, .45), 0 0 16px 2px rgba(47, 123, 255, .35); }
}
a.pl-app:hover .pl-go { transform: translateY(-1px) scale(1.02); animation-play-state: paused; }
.pl-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .6), transparent 70%); transform: translateX(-120%); transition: .8s ease; }
a.pl-app:hover .pl-go::after { transform: translateX(120%); }
.pl-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: plRipple .6s ease-out; pointer-events: none; }
@keyframes plRipple { to { transform: scale(4); opacity: 0; } }
.pl-new {
  position: absolute; top: 6px; right: 8px; z-index: 2; padding: 2px 5px; border-radius: 4px;
  background: linear-gradient(135deg, #ff4757, #ff6b81); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 3px 8px rgba(255, 71, 87, .4); animation: plNewPulse 1.5s ease-in-out infinite;
}
@keyframes plNewPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(255, 71, 87, .4); }
  50% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 71, 87, .6); }
}

/* ===== Buttons (generic) ===== */
.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border-radius: 14px;
  font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, background .3s ease;
}
.pl-btn-cta { color: #fff; background: var(--cta-gradient); border-color: rgba(255, 255, 255, .4); box-shadow: 0 8px 18px rgba(47, 123, 255, .32); }
html[data-theme="dark"] .pl-btn-cta { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.pl-btn-cta:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 24px rgba(47, 123, 255, .42); }
.pl-btn-ghost { color: var(--primary); background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(233, 242, 255, .7)); border-color: rgba(47, 123, 255, .3); box-shadow: 0 4px 12px rgba(47, 123, 255, .12); }
html[data-theme="dark"] .pl-btn-ghost { background: rgba(30, 41, 59, .7); color: var(--primary); border-color: rgba(96, 165, 250, .3); }
.pl-btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 123, 255, .22); }
.pl-btn-sm { padding: 6px 12px; font-size: 12px; }

/* ===== Detail page ===== */
.pl-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 4px 0 2px; }
.pl-crumb a { color: var(--primary); text-decoration: none; font-weight: 700; }
.pl-crumb a:hover { text-decoration: underline; }
.pl-detail-frame { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pl-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pl-detail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; }
.pl-sumcard { padding: 18px 18px 14px; }
.pl-sum-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pl-sum-ico img {
  width: 64px; height: 64px; border-radius: 20px; object-fit: contain; display: block;
  border: 2px solid rgba(47, 123, 255, .35); background: #eef4ff;
  box-shadow: 0 0 0 1px rgba(47, 123, 255, .15), 0 0 16px 3px rgba(47, 123, 255, .25), 0 10px 22px rgba(31, 111, 235, .2);
  animation: plAvatarGlow 2.5s ease-in-out infinite;
}
html[data-theme="dark"] .pl-sum-ico img { background: #1e293b; }
.pl-sum-info { flex: 1; min-width: 220px; }
.pl-sum-name { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: var(--text); }
.pl-pillrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--primary); background: rgba(47, 123, 255, .1); border: 1px solid rgba(47, 123, 255, .24); text-decoration: none; }
html[data-theme="dark"] .pl-pill { color: var(--accent); background: rgba(96, 165, 250, .12); border-color: rgba(96, 165, 250, .3); }
.pl-pill-link:hover { background: rgba(47, 123, 255, .18); }
.pl-sum-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.pl-guidelink { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; text-decoration: none; }
.pl-guidelink:hover { color: var(--primary); }
.pl-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.pl-facts > div { border-radius: 14px; padding: 8px 10px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .14); }
html[data-theme="dark"] .pl-facts > div { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .16); }
.pl-facts dt { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pl-facts dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cardtitle { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--text); }
.pl-cardtitle i { color: var(--primary); }

/* TOC */
.pl-toc { padding: 14px 16px; }
.pl-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: pltoc; }
.pl-toc > ol > li { margin: 6px 0; }
.pl-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 13.5px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .12); }
html[data-theme="dark"] .pl-toc a { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .14); }
.pl-toc a:hover { border-color: var(--hover-border); box-shadow: var(--hover-shadow); }
.pl-toc em { font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--cta-gradient); border-radius: 6px; padding: 2px 6px; flex: none; }
html[data-theme="dark"] .pl-toc em { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.pl-toc ol ol { margin: 4px 0 2px; padding-left: 26px; }
.pl-toc ol ol a { font-weight: 500; font-size: 12.5px; padding: 4px 10px; }

/* Article reader */
.pl-article { padding: 16px 18px; }
.pl-reader h2 { font-size: 18px; font-weight: 900; color: var(--text); margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--primary); }
.pl-reader h3 { font-size: 15.5px; font-weight: 800; color: var(--text); margin: 16px 0 6px; }
.pl-reader p { font-size: 14px; color: var(--text); opacity: .92; margin: 8px 0; }
.pl-readerlead { font-size: 15px !important; font-weight: 600; color: var(--primary) !important; opacity: 1 !important; }
.pl-reader ol, .pl-reader ul { padding-left: 22px; margin: 8px 0; }
.pl-reader li { font-size: 14px; margin: 4px 0; }
.pl-faq { border-radius: 12px; border: 1px solid rgba(47, 123, 255, .18); background: var(--panel-soft); margin: 8px 0; overflow: hidden; }
html[data-theme="dark"] .pl-faq { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .2); }
.pl-faq summary { cursor: pointer; padding: 10px 14px; font-weight: 800; font-size: 13.5px; color: var(--text); }
.pl-faq summary::marker { color: var(--primary); }
.pl-faq p { padding: 0 14px 10px; margin: 0; font-size: 13px; color: var(--muted); }

/* Discovery + rated rows */
.pl-disc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pl-disc { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 14px; text-decoration: none; color: var(--text); font-size: 12.5px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .14); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease; }
html[data-theme="dark"] .pl-disc { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .16); }
.pl-disc:hover { transform: translateY(-2px); border-color: var(--hover-border); box-shadow: var(--hover-shadow); }
.pl-disc i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--cta-gradient); flex: none; font-size: 13px; }
html[data-theme="dark"] .pl-disc i { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.pl-rated { display: flex; flex-direction: column; gap: 6px; }
.pl-ratedrow { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 14px; text-decoration: none; color: var(--text); background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .1); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
html[data-theme="dark"] .pl-ratedrow { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .14); }
.pl-ratedrow:hover { transform: translateX(3px); border-color: var(--hover-border); box-shadow: var(--hover-shadow); }
.pl-ratedrow img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; border: 1.5px solid rgba(47, 123, 255, .3); background: #eef4ff; flex: none; }
html[data-theme="dark"] .pl-ratedrow img { background: #1e293b; }
.pl-rank { font-size: 11px; font-weight: 900; color: var(--primary); background: rgba(47, 123, 255, .1); border-radius: 8px; padding: 2px 6px; flex: none; }
.pl-ratedmeta { display: flex; flex-direction: column; min-width: 0; }
.pl-ratedmeta b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ratedmeta small { font-size: 10.5px; color: var(--muted); }

/* Comment form */
.pl-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.pl-cform { display: flex; flex-direction: column; gap: 12px; }
.pl-cform label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--text); }
.pl-cform input, .pl-cform textarea {
  border-radius: 12px; border: 1px solid rgba(47, 123, 255, .24); background: rgba(255, 255, 255, .82);
  padding: 10px 12px; font-size: 13.5px; color: var(--text); font-family: inherit; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
html[data-theme="dark"] .pl-cform input, html[data-theme="dark"] .pl-cform textarea { background: rgba(15, 23, 42, .6); border-color: rgba(96, 165, 250, .28); color: var(--text); }
.pl-cform input:focus, .pl-cform textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 123, 255, .18); }
.pl-cform textarea { resize: vertical; min-height: 110px; }
.pl-submit { align-self: flex-start; }
.pl-formok { margin: 0; font-size: 13px; font-weight: 800; color: #16a34a; padding: 8px 12px; border-radius: 10px; background: rgba(22, 163, 74, .12); border: 1px solid rgba(22, 163, 74, .3); }

/* 404 */
.pl-missing { align-items: center; text-align: center; padding: 34px 22px; }
.pl-code { font-size: 52px; font-weight: 900; color: var(--primary); letter-spacing: 4px; text-shadow: 0 8px 24px rgba(47, 123, 255, .35); }
.pl-missing h1 { margin: 6px 0 8px; font-size: 22px; font-weight: 900; color: var(--text); }
.pl-missing p { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }

/* ===== Footer ===== */
.pl-footer { position: relative; z-index: 1; padding-bottom: 120px; }
.pl-foot-links { max-width: 1200px; margin: 8px auto 6px; padding: 0 20px; }
.pl-foot-links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 10px 0; border-top: 1px solid rgba(47, 123, 255, .14); border-bottom: 1px solid rgba(47, 123, 255, .14); }
.pl-foot-links a { font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.pl-foot-links a:hover { color: var(--primary); }
html[data-theme="dark"] .pl-foot-links { border-color: rgba(96, 165, 250, .18); }
.pl-brand-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 20px 6px; text-align: center; }
.pl-foot-desc { font-size: 11.5px; color: var(--muted); }
.pl-foot-copy { font-size: 11px; color: var(--muted); }

/* ===== Bottom tab navigation (st666 style) ===== */
.pl-bottom-nav {
  position: fixed; z-index: 100; right: 50%; bottom: 0; width: min(100%, 920px); min-height: 74px;
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end;
  overflow: visible; isolation: isolate; background: transparent; border: 0; box-shadow: none;
  transform: translateX(50%);
}
.pl-bottom-nav::before {
  content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 40px;
  pointer-events: none; background: var(--bnav-bg); border: 1px solid var(--bnav-border); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(20, 36, 62, .12);
  backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%);
}
html[data-theme="dark"] .pl-bottom-nav::before { background: var(--bnav-bg); border-color: rgba(96, 165, 250, .22); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
.pl-bnav-item {
  position: relative; z-index: 1; min-width: 0; min-height: 60px; padding: 4px 3px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 18px; text-decoration: none; color: var(--bnav-muted);
  transition: color .18s ease, background-color .18s ease;
}
.pl-bnav-item:hover::before { content: ""; position: absolute; inset: -2px; border-radius: 20px; background: radial-gradient(circle at center, rgba(47, 123, 255, .15) 0%, transparent 70%); pointer-events: none; }
.pl-bnav-icon { position: relative; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; color: var(--primary); font-size: 17px; transform-origin: center bottom; transition: transform 320ms cubic-bezier(.34, 1.56, .64, 1); }
.pl-bnav-label { position: relative; z-index: 2; max-width: 100%; font-size: 10px; font-weight: 720; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bnav-text); }
.pl-bnav-item.active .pl-bnav-label { color: var(--primary); font-weight: 900; }
.pl-bnav-item.active .pl-bnav-icon { animation: plNavPulse 2s ease-in-out infinite; }
@keyframes plNavPulse {
  0%, 100% { transform: scale(1); filter: saturate(1.08) brightness(1.05); }
  50% { transform: scale(1.06); filter: saturate(1.15) brightness(1.1) drop-shadow(0 0 8px rgba(47, 123, 255, .4)); }
}
.pl-bnav-item:active .pl-bnav-icon { transform: scale(.82); }

/* ===== Floating action group ===== */
.pl-fab {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 101;
  display: flex; gap: 10px; padding: 8px; border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 14px 34px rgba(26, 68, 138, .24);
}
html[data-theme="dark"] .pl-fab { background: rgba(30, 41, 59, .82); border-color: rgba(255, 255, 255, .14); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pl-detail-frame { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 785px) {
  .pl-header { margin: 0 auto 4px; border-radius: 0 0 18px 18px; }
  .pl-nav { padding: 8px 12px; }
  .pl-brand-mark { width: 34px; height: 34px; font-size: 15px; border-radius: 11px; }
  .pl-brand-word { font-size: 15px; }
  .pl-brand-word small { font-size: 8px; letter-spacing: 2px; }
  .pl-search-toggle, .pl-mode { width: 34px; height: 34px; font-size: 13px; }
  .pl-lang-seg { padding: 4px 9px; font-size: 10.5px; letter-spacing: .4px; }
  .pl-catnav { padding: 0 12px 10px; }
  .pl-search-box { width: calc(100vw - 90px); right: 46px; }
  .pl-carousel { padding: 0 10px; margin: 2px auto; }
  .pl-carousel-wrap { border-radius: 18px; }
  .pl-slide { min-height: 168px; max-height: 235px; height: 46vw; }
  .pl-car-btn { width: 40px; height: 40px; }
  .pl-section { padding: 0 10px; margin-top: 2px; }
  .pl-marquee { min-height: 30px; border-radius: 12px; padding: 4px 10px; }
  .pl-marquee-text { font-size: 13px; }
  .pl-marquee-label { font-size: 11px; padding: 2px 8px; }
  .pl-cat-title { font-size: 20px; margin-bottom: 10px; padding: 5px 0; }
  .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pl-card { padding: 8px 6px 6px; gap: 3px; border-radius: 14px; }
  .pl-avatar { width: 46px; height: 46px; margin-top: 4px; }
  .pl-title { font-size: 13.5px; }
  .pl-desc { font-size: 10.5px; }
  .pl-score { font-size: 10px; }
  .pl-stars { font-size: 11px; }
  .pl-go { font-size: 11px; padding: 6px 8px; border-radius: 10px; margin-top: 3px; }
  .pl-detail-frame { grid-template-columns: minmax(0, 1fr); }
  .pl-detail-side { position: static; }
  .pl-detail-side::before { content: ""; display: block; height: 1px; margin: 4px 0 10px; background: linear-gradient(90deg, transparent, rgba(47, 123, 255, .4), transparent); }
  .pl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-sum-head { gap: 12px; }
  .pl-sum-act { min-width: 100%; flex-direction: row; align-items: center; }
  .pl-sum-act .pl-btn { flex: 1; }
  .pl-slide-inner { padding: 18px 14px; }
  .pl-fab { bottom: 82px; }
  .pl-fab .pl-btn { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 420px) {
  .pl-grid { gap: 7px; }
  .pl-card { padding: 6px 4px 4px; }
  .pl-title { font-size: 12.5px; }
  .pl-desc { font-size: 9.5px; }
  .pl-go { font-size: 10px; padding: 5px 7px; }
  .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-bnav-label { font-size: 9px; }
  .pl-bnav-icon { font-size: 15px; }
  .pl-fab .pl-btn { padding: 6px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-avatar, .pl-go, .pl-new, .pl-marquee, .pl-marquee::before, .pl-bnav-item.active .pl-bnav-icon, .pl-marquee-icon { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== v2 additions: skip link, header category nav, language pill, back-to-top ===== */
.pl-skip { position: absolute; left: -9999px; top: 8px; z-index: 300; padding: 8px 14px; border-radius: 12px; background: var(--cta-gradient); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; }
.pl-skip:focus { left: 10px; }
.pl-catnav { display: flex; flex-wrap: nowrap; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 0 22px 12px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.pl-catnav::-webkit-scrollbar { display: none; }
.pl-catpill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-decoration: none; color: var(--muted); background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .2); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, color .2s ease; }
html[data-theme="dark"] .pl-catpill { background: rgba(30, 41, 59, .66); color: var(--muted); border-color: rgba(96, 165, 250, .24); }
.pl-catpill i { font-size: 12px; color: var(--primary); }
.pl-catpill:hover { transform: translateY(-2px); color: var(--primary); box-shadow: 0 8px 18px rgba(47, 123, 255, .2); }
.pl-catpill.active { color: #fff; background: var(--cta-gradient); border-color: rgba(255, 255, 255, .5); box-shadow: 0 8px 20px rgba(47, 123, 255, .34); }
html[data-theme="dark"] .pl-catpill.active { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; }
.pl-catpill.active i { color: #fff; }
.pl-lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .26); overflow: hidden; }
html[data-theme="dark"] .pl-lang { background: rgba(30, 41, 59, .7); border-color: rgba(96, 165, 250, .3); }
.pl-lang-seg { padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .8px; text-decoration: none; color: var(--muted); transition: background .25s ease, color .25s ease; }
.pl-lang-seg:hover { color: var(--primary); background: rgba(47, 123, 255, .12); }
html[data-theme="dark"] .pl-lang-seg:hover { color: var(--accent); background: rgba(96, 165, 250, .16); }
.pl-lang-seg.is-active { color: #fff; background: var(--cta-gradient); box-shadow: 0 4px 12px rgba(47, 123, 255, .3); }
html[data-theme="dark"] .pl-lang-seg.is-active { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.pl-top { position: fixed; right: 18px; bottom: 86px; z-index: 101; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: var(--panel); color: var(--primary); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; box-shadow: 0 10px 26px rgba(26, 68, 138, .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pl-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.pl-top:hover { background: var(--cta-gradient); color: #fff; }

/* ===== v2 detail contract: description box, discovery row, category tag row ===== */
.pl-appdesc { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
html[data-theme="dark"] .pl-appdesc { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .2); }
.pl-appdesc h2 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.pl-appdesc p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text); }
.pl-discovery { margin-top: 12px; }
.pl-discovertitle { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.pl-metacats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(47, 123, 255, .22); }
html[data-theme="dark"] .pl-metacats { border-top-color: rgba(96, 165, 250, .22); }
.pl-metacat { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; color: var(--muted); background: transparent; border: 1px solid rgba(47, 123, 255, .3); transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, color .2s ease; }
html[data-theme="dark"] .pl-metacat { color: var(--muted); border-color: rgba(96, 165, 250, .3); }
.pl-metacat:hover { color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(47, 123, 255, .18); }
.pl-metacat.is-active { color: #fff; background: var(--cta-gradient); border-color: rgba(255, 255, 255, .5); box-shadow: 0 8px 18px rgba(47, 123, 255, .34); }
html[data-theme="dark"] .pl-metacat.is-active { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; }

/* ===== v2 download action + delay zone (shared partials, themed here) ===== */
.app-dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 18px; border-radius: 14px; font-weight: 900; font-size: 13.5px; letter-spacing: .3px; text-decoration: none; cursor: pointer; border: 1px solid rgba(255, 255, 255, .48); color: #fff; background: var(--cta-gradient); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 10px 22px rgba(47, 123, 255, .34); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease; overflow: hidden; position: relative; font-family: inherit; }
html[data-theme="dark"] .app-dl-btn { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.app-dl-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 12px 26px rgba(47, 123, 255, .44); }
.app-dl-zone { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
html[data-theme="dark"] .app-dl-zone { background: rgba(15, 23, 42, .52); border-color: rgba(96, 165, 250, .22); }
.app-dl-progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.app-dl-bar { flex: 1; height: 10px; border-radius: 999px; background: rgba(47, 123, 255, .14); border: 1px solid rgba(47, 123, 255, .2); overflow: hidden; display: block; }
html[data-theme="dark"] .app-dl-bar { background: rgba(96, 165, 250, .16); border-color: rgba(96, 165, 250, .24); }
.app-dl-bar b { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--cta-gradient); box-shadow: 0 0 12px rgba(47, 123, 255, .5); }
html[data-theme="dark"] .app-dl-bar b { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.app-dl-install { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(47, 123, 255, .24); }
html[data-theme="dark"] .app-dl-install { border-top-color: rgba(96, 165, 250, .24); }
.app-dl-install b { display: block; font-size: 13.5px; font-weight: 900; color: var(--text); }
.app-dl-install ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.app-dl-install li { margin: 4px 0; }
.app-dl-final { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 12px 18px; border-radius: 14px; font-weight: 900; font-size: 14.5px; text-decoration: none; color: #fff; background: var(--cta-gradient); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 12px 26px rgba(47, 123, 255, .4); animation: plCtaPulse 2.5s ease-in-out infinite; }
html[data-theme="dark"] .app-dl-final { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.app-dl-final:hover { transform: translateY(-1px) scale(1.01); }

/* ===== v2 landing page ===== */
.pl-landing { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.pl-land-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pl-landing h1 { margin: 0 0 6px; font-size: 23px; font-weight: 900; color: var(--text); }
.pl-land-lead { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.pl-land-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-land-actions .pl-btn { flex: 1 1 150px; padding: 12px 18px; font-size: 14px; }
.pl-land-steps { padding: 14px 16px; border-radius: 16px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .18); }
html[data-theme="dark"] .pl-land-steps { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .2); }
.pl-land-steps h2 { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.pl-land-steps ol { margin: 0; padding-left: 20px; color: var(--text); font-size: 13.5px; }
.pl-land-steps li { margin: 5px 0; }

/* ===== hero slide additions ===== */
.pl-slide h1 { margin: 0 0 8px; font-size: clamp(24px, 3.8vw, 40px); font-weight: 900; color: var(--text); letter-spacing: .4px; }
.pl-slide-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.pl-foot-about { max-width: 720px; margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ===== Home directory sidebar (search / Follow Us / Most Rated Apps) ===== */
.pl-home-frame { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.pl-home-main { min-width: 0; }
.pl-home-main .pl-section { max-width: none; margin-left: 0; margin-right: 0; padding: 0; }
.pl-home-main .pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; }
.pl-home-side .pl-card { padding: 14px 16px; }
.pl-sidefield { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--panel-soft); border: 1px solid rgba(47, 123, 255, .18); transition: border-color .25s ease, box-shadow .25s ease; }
.pl-sidefield:focus-within { border-color: var(--hover-border); box-shadow: var(--hover-shadow); }
.pl-sidefield > i { color: var(--primary); font-size: 13px; }
.pl-sidefield .pl-search-input { font-size: 13px; }
.pl-homesearch-note { margin: 9px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.pl-sidesocial .pl-disc-row { grid-template-columns: minmax(0, 1fr); }
html[data-theme="dark"] .pl-sidefield { background: rgba(15, 23, 42, .5); border-color: rgba(96, 165, 250, .22); }
html[data-theme="dark"] .pl-homesearch-note { color: rgba(148, 163, 184, .85); }

@media (max-width: 1024px) {
  .pl-home-frame { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 785px) {
  .pl-home-frame { grid-template-columns: minmax(0, 1fr); padding: 0 10px; }
  .pl-home-side { position: static; }
  .pl-home-side::before { content: ""; display: block; height: 1px; margin: 4px 0 12px; background: linear-gradient(90deg, transparent, rgba(47, 123, 255, .4), transparent); }
}
