:root {
  --bg: #0e0f12;
  --bg-elev: #17181d;
  --bg-card: #1c1e24;
  --line: #2a2d36;
  --text: #eef0f4;
  --muted: #8b909c;
  --accent: #ff4d6d;
  --accent-2: #ff7a45;
  --nav: #0b0c0f;
  --radius: 8px;
  --container: 1200px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: "ZCOOL XiaoWei", "Noto Sans SC", "PingFang SC", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(255, 122, 69, 0.14), transparent 55%),
    radial-gradient(900px 380px at 88% 0%, rgba(255, 77, 109, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 24px, var(--container)); margin: 0 auto; }

.site-header {
  background:
    linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(11, 12, 15, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 12px;
}
.header-top-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  min-height: 42px;
}
.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.header-top-right { margin-left: auto; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}
.header-tools .search-form { flex: 1; max-width: 420px; }
.header-dl-desktop { display: none; flex-shrink: 0; }
.header-short-desktop { display: none; flex-shrink: 0; }
.header-user {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-auth-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.header-auth-btn.is-reg {
  border-color: rgba(255, 77, 109, 0.55);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.95), rgba(225, 29, 72, 0.9));
  color: #fff;
}
.header-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}
.header-user-link:hover { background: rgba(255, 255, 255, 0.09); }
.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  flex-shrink: 0;
}
.header-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.header-user-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-badge {
  font-size: 10px;
  color: #93a0b4;
  font-weight: 650;
}
.header-user-badge.is-vip { color: #f6c453; }
.header-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.95), rgba(255, 122, 69, 0.92));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.header-dl-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(255, 77, 109, 0.36);
}
.header-dl-btn:active { transform: scale(0.97); }
.header-dl-btn.is-active {
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.55), 0 6px 16px rgba(255, 77, 109, 0.28);
}
.header-dl-ico { display: block; flex-shrink: 0; }

@media (min-width: 721px) {
  body.m-download-btn .header-dl-desktop { display: block; }
  .header-short-desktop { display: block; }
  .header-top-bar { display: none !important; }
  .header-user { display: flex; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  white-space: nowrap;
  min-width: 0;
  transition: transform 0.2s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--mark-c2, var(--accent)) 40%, transparent));
}
.logo-mark svg,
.logo-mark-svg {
  display: block;
  border-radius: 12px;
}

.logo--favicon {
  gap: 0;
}
.logo-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.15;
}
.logo-mark--favicon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  font-size: 26px; 
  filter: none;
  border-radius: 6px;
  overflow: hidden;
}
.logo-mark--favicon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo-name {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--name-c1, #fff);
}

body.name-gradient .logo-name,
.name-gradient .logo-name {
  background: linear-gradient(110deg, var(--name-c1, #fff) 18%, var(--name-c2, #ff8fa3) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.name-solid .logo-name,
.name-solid .logo-name {
  color: var(--name-c1, #fff);
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.name-glow .logo-name,
.name-glow .logo-name {
  color: var(--name-c1, #fff);
  text-shadow:
    0 0 8px color-mix(in srgb, var(--name-c2, #f0abfc) 70%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  background: none;
}
body.name-shine .logo-name,
.name-shine .logo-name {
  background: linear-gradient(
    100deg,
    var(--name-c1, #fff7ed) 0%,
    var(--name-c2, #fbbf24) 35%,
    #fff 50%,
    var(--name-c2, #fbbf24) 65%,
    var(--name-c1, #fff7ed) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mayiShine 4.5s linear infinite;
}
@keyframes mayiShine {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.logo-tag {
  margin: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
body.tag-spaced .logo-tag,
.tag-spaced .logo-tag { letter-spacing: 0.18em; }
body.tag-plain .logo-tag,
.tag-plain .logo-tag { letter-spacing: 0.02em; opacity: 0.9; }
body.tag-badge .logo-tag,
.tag-badge .logo-tag {
  display: inline-flex;
  align-self: flex-start;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}


body.header-glass .site-header {
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(11, 12, 15, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.header-solid .site-header {
  background: color-mix(in srgb, var(--bg) 88%, #000);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.header-flat .site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.search-form {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-form:focus-within {
  border-color: rgba(255, 122, 69, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.search-ico {
  flex-shrink: 0;
  margin-left: 14px;
  color: var(--muted);
}
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.search-form input::placeholder { color: #6f7583; }
.search-form button {
  border: 0;
  align-self: stretch;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.search-form button:hover { filter: brightness(1.06); }

.main-nav {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0 12px;
}
.header-mobile-bar { display: none; }
.nav-mobile {
  display: none;
  position: relative;
  z-index: 60;
}
.nav-scroll-wrap { display: none; }
.nav-scroll {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  margin: 0 -2px;
  padding: 0 2px 10px;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll.is-dragging { cursor: grabbing; }
.nav-scroll.is-dragging .nav-scroll-item { pointer-events: none; }
.nav-scroll-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding: 2px 0;
}
.nav-scroll-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 9.5em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #c8ccd6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.nav-scroll-item.is-active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.18);
}
.nav-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cat-btn:hover,
.nav-mobile.is-open .nav-cat-btn {
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.12);
}
.nav-cat-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
  height: 12px;
}
.nav-cat-burger i {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile.is-open .nav-cat-burger i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-mobile.is-open .nav-cat-burger i:nth-child(2) { opacity: 0; }
.nav-mobile.is-open .nav-cat-burger i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.nav-cat-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(78vw, 280px);
  max-height: min(68vh, 420px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1a1d24 0%, #12141a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.nav-cat-panel[hidden] { display: none !important; }
.nav-cat-panel-head {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9aa0ab;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.nav-cat-list {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
}
.nav-cat-item {
  display: block;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.nav-cat-item:hover,
.nav-cat-item:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-cat-item.is-active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.16);
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 8px 6px;
  color: #c8ccd6;
  font-size: 13px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.14);
}

.notice {
  margin: 16px 0;
  padding: 10px 14px;
  background: #24181c;
  border: 1px solid #3a242c;
  color: #ffb4c0;
  border-radius: var(--radius);
  font-size: 13px;
}
.notice-marquee-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0 0 0 12px;
  min-height: 40px;
  overflow: hidden;
  background: linear-gradient(90deg, #2a1820, #24181c 40%, #1c1218);
  border: 1px solid #3a242c;
  border-radius: var(--radius);
  color: #ffb4c0;
}
.notice-marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.notice-marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0;
  white-space: nowrap;
  animation: notice-marquee-scroll 28s linear infinite;
  will-change: transform;
}
.notice-marquee-bar:hover .notice-marquee-track {
  animation-play-state: paused;
}
.notice-marquee-item {
  display: inline-block;
  padding: 10px 48px 10px 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
@keyframes notice-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.notice-bookmark-btn {
  flex: 0 0 auto;
  margin: 6px 8px 6px 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.notice-bookmark-btn:hover { filter: brightness(1.08); }
.notice-bookmark-btn:active { transform: scale(0.98); }
.mayi-bookmark-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 12000;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mayi-bookmark-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 560px) {
  .notice-marquee-bar {
    gap: 6px;
    padding-left: 8px;
    min-height: 44px;
  }
  .notice-marquee-item { font-size: 12px; padding-right: 36px; }
  .notice-bookmark-btn {
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 7px;
  }
  .mayi-bookmark-toast { bottom: 72px; }
  .notice-marquee-track { animation-duration: 22s; }
}

.ad-banner {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  text-align: center;
  background: linear-gradient(90deg, #2a1a12, #3a2218 40%, #2a1a12);
  border: 1px dashed #6a4030;
  color: #ffd0a8;
  border-radius: var(--radius);
  font-size: 14px;
}
.ad-banner:hover { filter: brightness(1.08); }
.ad-banner-img {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: #1a1210;
}
.ad-banner-img img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
}


.mayi-slideshow-wrap {
  display: none;
  padding: 8px 0 10px;
}
.mayi-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #1a1520 0%, #0e0c12 55%, #16101a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 7.2;
  isolation: isolate;
}
.mayi-slide-track {
  position: absolute;
  inset: 0;
}
.mayi-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s ease;
  z-index: 1;
  text-decoration: none;
  color: #fff;
}
.mayi-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.mayi-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mayi-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mayi-slide-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.mayi-slideshow:hover .mayi-slide-nav {
  display: inline-flex;
}
.mayi-slide-prev { left: 8px; }
.mayi-slide-next { right: 8px; }
.mayi-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.mayi-slide-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.mayi-slide-dot.is-active {
  width: 16px;
  background: #fff;
}

.ad-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.ad-icon-item {
  text-align: center;
  color: var(--text);
  text-decoration: none;
}
.ad-icon-thumb {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #24181c;
  border: 1px solid #3a242c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-icon-fallback {
  font-size: 14px;
  color: #ffb4c0;
  font-weight: 600;
}
.ad-icon-name {
  font-size: 12px;
  color: #c9b8bc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-html { margin: 12px 0; }

.section { margin: 22px 0 28px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  position: relative;
  padding-left: 12px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .more {
  color: var(--muted);
  font-size: 13px;
}
.section-head .more:hover { color: var(--accent); }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dir-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.dir-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.dir-item strong {
  display: block;
  color: var(--accent-2);
  font-size: 20px;
  margin-bottom: 4px;
}
.dir-item span {
  color: #ddd;
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.video-card:hover {
  border-color: #444;
  transform: translateY(-2px);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}
.thumb-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1;
}
.thumb.is-previewing img { opacity: 0; }
.thumb.is-previewing .thumb-preview { opacity: 1; }
.thumb.is-loading::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: thumbSpin .7s linear infinite;
}
@keyframes thumbSpin {
  to { transform: rotate(360deg); }
}
.thumb-preview-tip {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0,0,0,.7);
  color: #fff;
}
.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
}
.video-card .title {
  margin: 8px 8px 4px;
  font-size: 13px;
  font-weight: 500;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #eee;
}
.video-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 11px;
}

.player-section { margin: 18px 0; }
.play-title {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  
  --wm-scale: 1;
}
.player-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  min-height: 200px;
  background: #000;
  object-fit: contain;
}

.player-wrap.is-preroll-open {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 70vh;
  min-height: 200px;
}
.player-wrap.is-preroll-open video {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}

.player-wrap.is-v-portrait:not(.is-preroll-open) {
  aspect-ratio: auto;
  width: var(--v-fit-w, auto);
  height: var(--v-fit-h, auto);
  max-width: 100%;
  max-height: min(65vh, 640px);
  margin-left: auto;
  margin-right: auto;
}
.player-wrap.is-v-portrait:not(.is-preroll-open) video {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}
.player-wrap.is-v-portrait:not(.is-preroll-open) .wm-mask-br {
  
  width: var(--wm-w, 48%);
  height: var(--wm-h, 30%);
  max-width: calc(100% - var(--wm-right, 0px));
  max-height: calc(100% - var(--wm-bottom, 0px));
  right: var(--wm-right, 0px);
  bottom: var(--wm-bottom, 0px);
}
@media (max-width: 560px) {
  .player-wrap video {
    max-height: 56vh;
    min-height: 180px;
  }
  .player-wrap.is-preroll-open {
    max-height: 56vh;
    min-height: 180px;
  }
  .player-wrap.is-v-portrait:not(.is-preroll-open) {
    max-height: 56vh;
  }
}

.mayi-preroll {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mayi-preroll::before {
  content: '推荐';
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.mayi-preroll.is-hidden::before,
.mayi-preroll[hidden]::before {
  display: none;
}
.mayi-preroll-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
}
.mayi-preroll-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}
.mayi-preroll-top {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  pointer-events: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mayi-preroll-timer {
  --ad-progress: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  max-width: 100%;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  position: relative;
}
.mayi-preroll-timer.is-done {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mayi-preroll-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.mayi-preroll-ring-bg {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.5;
}
.mayi-preroll-ring-fg {
  stroke: #f5c542;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: calc(97.4 * (1 - var(--ad-progress)));
  transition: stroke-dashoffset 0.85s linear;
}
.mayi-preroll-timer-num {
  position: absolute;
  left: 3px;
  width: 32px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
  color: #fff;
}
.mayi-preroll-timer-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  padding-right: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mayi-preroll-close {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.82);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity .28s ease, transform .28s ease, background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.mayi-preroll-close.is-ready {
  opacity: 1;
  transform: none;
}
.mayi-preroll-close:disabled {
  opacity: 0;
  cursor: default;
}
.mayi-preroll-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.mayi-preroll-close-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mayi-preroll-close.is-ready:not(:disabled):hover {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}
.mayi-preroll-close.is-ready:not(:disabled):hover .mayi-preroll-close-x {
  background: rgba(255, 255, 255, 0.2);
}
.mayi-preroll-close.is-ready:not(:disabled):active {
  transform: scale(0.97);
}
.player-wrap:fullscreen .mayi-preroll,
.player-wrap:-webkit-full-screen .mayi-preroll,
.player-wrap.is-fullscreen .mayi-preroll {
  position: absolute;
  inset: 0;
}
@media (max-width: 560px) {
  .mayi-preroll-timer-label { max-width: 7.5em; }
  .mayi-preroll-top {
    top: 6px;
    right: 6px;
    gap: 6px;
  }
  .mayi-preroll-timer,
  .mayi-preroll-close {
    min-height: 32px;
  }
  .mayi-preroll-ring,
  .mayi-preroll-timer-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
}

.player-wrap:fullscreen,
.player-wrap:-webkit-full-screen,
.player-wrap:-moz-full-screen,
.player-wrap:-ms-fullscreen,
.player-wrap.is-fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
  overflow: hidden !important;
}
.player-wrap:fullscreen video,
.player-wrap:-webkit-full-screen video,
.player-wrap:-moz-full-screen video,
.player-wrap:-ms-fullscreen video,
.player-wrap.is-fullscreen video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: #000;
}

html.mayi-fs-lock,
html.mayi-fs-lock body {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}
.player-wrap.is-fs-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.35) 70%, transparent);
  pointer-events: auto;
}
.player-wrap.is-preroll-open .player-bar {
  z-index: 30;
  pointer-events: none;
}
.player-wrap.is-preroll-open .player-bar .pbtn,
.player-wrap.is-preroll-open .player-bar .pseek,
.player-wrap.is-preroll-open .player-bar .pvol {
  pointer-events: none;
}
.player-bar .pbtn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.player-bar .pbtn:hover { background: rgba(255,255,255,.12); }
.player-bar .pseek {
  flex: 1;
  height: 10px;
  margin: 8px 0;
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.player-bar .pseek::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  bottom: -14px;
}
.player-bar .pseek.is-seeking,
.player-bar .pseek:active {
  height: 12px;
}
.player-bar .pseek-fill {
  height: 100%;
  width: 0%;
  background: #22c55e;
  border-radius: 99px;
  pointer-events: none;
}
.player-bar .pseek-fill::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.45);
  opacity: 0.95;
  pointer-events: none;
}
.player-bar .pseek-fill {
  position: relative;
}
.player-bar .ptime {
  color: #e5e7eb;
  font-size: 12px;
  white-space: nowrap;
  min-width: 84px;
  text-align: right;
}
.player-bar .pvol {
  width: 72px;
  accent-color: #22c55e;
  cursor: pointer;
}

.wm-mask-br {
  position: absolute;
  right: var(--wm-right, 0px);
  bottom: var(--wm-bottom, 0px);
  width: min(var(--wm-w, 48%), var(--wm-w-cap, 100%));
  height: min(var(--wm-h, 30%), var(--wm-h-cap, 100%));
  max-width: calc(100% - var(--wm-right, 0px));
  max-height: 100%;
  pointer-events: none;
  z-index: 5;
  background: var(--wm-bg, #000);
  opacity: var(--wm-op, 0.92);
  box-shadow: -8px -8px 20px rgba(0,0,0,.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(4px, 1.4vw, 10px) clamp(6px, 1.8vw, 12px) clamp(6px, 1.6vw, 12px);
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}
.player-wrap.wm-cover .wm-mask-br {
  display: flex;
}
.wm-mask-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  line-height: 1.15;
  gap: 2px;
  overflow: hidden;
}
.wm-mask-logo {
  display: block;
  height: auto;
  max-height: min(var(--wm-lh, 42%), 58%);
  width: auto;
  max-width: 92%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.wm-mask-logo.is-shake {
  animation: wm-title-shake 1.8s ease-in-out infinite;
  transform-origin: center center;
}
.wm-mask-title {
  color: var(--wm-tc, #fff);
  font-size: clamp(10px, calc(var(--wm-ts, 14px) * var(--wm-scale, 1)), 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 2px 6px rgba(0,0,0,.55);
}
.wm-mask-title.is-shake {
  display: block;
  max-width: 100%;
  animation: wm-title-shake 1.8s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes wm-title-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1px, 0.5px) rotate(-0.6deg); }
  20% { transform: translate(1.2px, -0.8px) rotate(0.7deg); }
  30% { transform: translate(-0.8px, 0) rotate(0.4deg); }
  40% { transform: translate(0.9px, 0.6px) rotate(-0.5deg); }
  50% { transform: translate(-1.1px, -0.4px) rotate(0.5deg); }
  60% { transform: translate(0.7px, 0.3px) rotate(-0.3deg); }
  70% { transform: translate(-0.5px, -0.6px) rotate(0.4deg); }
  80% { transform: translate(0.8px, 0.2px) rotate(-0.4deg); }
  90% { transform: translate(-0.6px, 0.5px) rotate(0.3deg); }
}
.wm-mask-url {
  margin-top: 0;
  color: var(--wm-tc, #fff);
  font-size: clamp(8px, calc(var(--wm-ts, 14px) * 0.7 * var(--wm-scale, 1)), 22px);
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  word-break: break-all;
  white-space: normal;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.player-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 15;
  text-align: center;
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.player-tip.error { color: #ffb4c0; }
.play-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.source-btn {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.source-btn:hover,
.source-btn.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 77, 109, 0.15);
}
.source-btn.vip-channel-btn {
  border: 1px solid #ff4d6d;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.source-btn.vip-channel-btn:hover,
.source-btn.vip-channel-btn.active {
  border-color: #ff6b88;
  color: #fff;
  background: rgba(255, 77, 109, 0.22);
}
.source-btn.vip-channel-promo {
  color: #ffc9d4;
}
.vip-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(180deg, #f6c453, #e8a317);
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 6px;
}
.player-lock {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 20px;
}
.player-lock[hidden] { display: none !important; }
.player-lock-card {
  width: min(360px, 100%);
  background: #141a22;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  color: #f3f6fb;
}
.player-lock-card h3 { margin: 0 0 8px; font-size: 18px; }
.player-lock-card p { margin: 0 0 16px; font-size: 13px; opacity: .78; line-height: 1.5; }
.player-lock-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-lock {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 650;
}
.btn-lock-vip {
  background: linear-gradient(180deg, #f6c453, #e8a317);
  color: #111;
}
.play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.play-meta a { color: var(--accent); }
.play-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.play-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: #eee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.play-action-btn.is-on {
  border-color: rgba(255, 209, 102, .55);
  background: rgba(255, 209, 102, .12);
  color: #ffd166;
}
.play-action-ico { font-size: 15px; line-height: 1; }
.play-action-hint {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.play-action-hint:hover { color: var(--accent); }
.mayi-lib-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 24, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.mayi-lib-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.member-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .member-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.member-video-grid .video-card {
  margin: 0;
}
.member-video-grid .title {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
.play-desc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #ccc;
  font-size: 14px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 22px 0 10px;
}
.pager a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  color: #ddd;
  font-size: 13px;
  padding: 0 8px;
}
.pager a.active,
.pager a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.static-page .page-content {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: #ddd;
}
.empty { color: var(--muted); grid-column: 1 / -1; }

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
  text-align: center;
}
.friend-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #bbb;
}
.friend-links a:hover { color: var(--accent); }
.copy {
  margin: 6px 0 0;
  color: #777;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.m-cat-dropdown .header-top-bar,
  body.m-download-btn .header-top-bar {
    display: flex;
  }
  body.m-cat-dropdown .nav-mobile {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  body.m-cat-scroll .nav-scroll-wrap {
    display: block;
    padding: 0 0 2px;
  }
  body.m-cat-scroll .nav-scroll {
    display: block;
  }
  .mayi-slideshow-wrap {
    display: block;
  }
  body.m-cat-scroll .header-inner {
    padding-bottom: 4px;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 0 12px;
  }
  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .header-tools .search-form {
    max-width: none;
    width: 100%;
  }
  .header-dl-desktop { display: none !important; }
  .header-short-desktop { display: none !important; }
  .logo {
    justify-content: center;
    text-align: center;
    gap: 10px;
    white-space: normal;
    max-width: 100%;
  }
  .logo-text {
    align-items: center;
  }
  .logo-name { font-size: 24px; }
  .logo-tag {
    letter-spacing: 0.08em;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }
  .logo-mark svg { width: 36px; height: 36px; }
  .logo-mark--favicon { font-size: 24px; } 
  .logo--favicon .logo-text { align-items: center; }
  .logo-name-row { justify-content: center; }
  .search-form { width: 100%; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-card .title { font-size: 12px; }
  .main-nav { display: none; }
  body.m-tabbar-on .mobile-tabbar { display: grid; }
  body.m-tabbar-on {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  body.m-tabbar-on .site-footer { padding-bottom: 8px; }
  body.m-home-icon-off .home-icon-ads { display: none !important; }
  body.m-home-banner-off .home-banner-ads { display: none !important; }
  body.m-home-global-ads-off .ad-global-wrap { display: none !important; }
  .player-bar {
    gap: 4px;
    padding: 6px 8px;
  }
  .player-bar .pvol { display: none; }
  .player-bar .ptime {
    min-width: 0;
    font-size: 11px;
  }
  .player-bar .pseek { height: 12px; margin: 10px 0; }
  .wm-mask-br {
    --wm-w-cap: 100%;
    --wm-h-cap: 100%;
    align-items: flex-end;
    padding-bottom: 8px;
  }
}


html.popup-lock,
html.popup-lock body {
  overflow: hidden;
}
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.site-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-popup[hidden] { display: none !important; }
.site-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.site-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.site-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}
.site-popup-timer {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.site-popup-timer-num {
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.site-popup-x {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #9ca3af;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.site-popup-x:hover { background: #6b7280; }
.site-popup-body {
  padding: 16px 16px 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.7;
}
.site-popup-content img,
.site-popup-content video {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-popup-content a { color: #2563eb; text-decoration: underline; }
.site-popup-content strong { color: #111827; }
.site-popup-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.popup-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #e11d48;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
}
.popup-mini-btn:hover { filter: brightness(1.08); }
.site-popup-content .popup-domain-val {
  color: #111827;
  font-weight: 700;
}
.site-popup-content .popup-content-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
}
.site-popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}
.site-popup-foot-left {
  min-width: 0;
  flex: 1;
}
.popup-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popup-promo.is-static { cursor: default; }
.popup-promo:hover { filter: brightness(1.06); }
.site-popup-close-now {
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  background: #e11d48;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.site-popup-close-now:hover { filter: brightness(1.06); }

@media (max-width: 560px) {
  .site-popup {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  .site-popup-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 82vh;
    margin: auto;
    border-radius: 12px;
  }
  .site-popup-head { padding: 10px 12px; }
  .site-popup-timer { font-size: 13px; }
  .site-popup-x {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    font-size: 20px;
  }
  .site-popup-body { padding: 12px; font-size: 13px; }
  .site-popup-foot {
    flex-wrap: wrap;
    padding: 10px 12px 12px;
  }
  .site-popup-foot-left { flex: 1 1 100%; }
  .popup-promo { width: 100%; justify-content: center; white-space: normal; }
  .site-popup-close-now { width: 100%; padding: 12px 16px; }
}


.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: 54px;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 16, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
body.m-tabbar-5 .mobile-tabbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}


body.page-short {
  background: #000;
}
body.page-short .site-header,
body.page-short .site-footer,
body.page-short .mayi-slideshow-wrap {
  display: none !important;
}
body.page-short main.container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.page-short.m-tabbar-on {
  padding-bottom: 0;
}
.short-app {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  background: #050506;
  overflow: hidden;
  color: #fff;
  margin: 0 auto;
}
body.m-tabbar-on .short-app {
  height: calc(100svh - 54px - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - 54px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100svh - 54px - env(safe-area-inset-bottom, 0px));
}
.short-app.is-off {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.short-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 70%, transparent);
  pointer-events: none;
}
.short-top-back,
.short-top-title,
.short-top-mine {
  pointer-events: auto;
}
.short-top-back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.08);
}
.short-top-title {
  flex: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.short-top-mine {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.1);
}
.short-feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.short-feed::-webkit-scrollbar { display: none; }
.short-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.short-slide video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}
.short-slide-meta {
  position: absolute;
  left: 0;
  right: 72px;
  bottom: 0;
  z-index: 5;
  padding: 28px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 55%, transparent);
  color: #fff;
  pointer-events: none;
}
.short-slide-author {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
}
.short-slide-author:hover {
  opacity: 0.92;
  text-decoration: underline;
}
.short-slide-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.short-slide-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.short-slide-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.short-slide.is-paused .short-slide-play {
  display: inline-flex;
}
.short-rail {
  position: absolute;
  right: 10px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}
.short-rail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  background: linear-gradient(145deg, #ff6b4a, #ff3d6e);
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.short-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.short-avatar-letter {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.short-slide-author:hover {
  opacity: 0.92;
  text-decoration: underline;
}
.short-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  min-width: 48px;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.short-rail-btn em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.short-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 20px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease;
}
.short-ico-heart::before { content: '♡'; }
.short-ico-star::before { content: '☆'; }
.short-ico-sound::before { content: '🔇'; }
.short-rail-btn.is-on .short-ico {
  background: rgba(255, 45, 85, .22);
  border-color: rgba(255, 90, 120, .45);
}
.short-rail-btn.is-on .short-ico-heart::before {
  content: '♥';
  color: #ff3b6b;
}
.short-rail-btn.is-on .short-ico-star::before {
  content: '★';
  color: #ffd166;
}
.short-rail-btn.is-on .short-ico-sound::before {
  content: '🔊';
}
.short-rail-btn:active .short-ico {
  transform: scale(0.92);
}
.short-empty {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #c8ccd6;
  font-size: 15px;
  line-height: 1.6;
  padding: 24px;
  background: #0e0f12;
}

.short-empty[hidden],
.short-empty.is-hide {
  display: none !important;
}
.short-empty.is-static {
  position: static;
  background: transparent;
}
.short-empty .muted { color: #8b909a; font-size: 13px; }


.short-pub-page { padding: 8px 0 28px; }
.short-pub-hero {
  text-align: center;
  padding: 18px 12px 22px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,77,109,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
}
.short-pub-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.short-pub-back:hover { color: #fff; }
.short-pub-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.35);
  background: linear-gradient(145deg, #ff6b4a, #ff3d6e);
}
.short-pub-avatar span {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.short-pub-avatar em {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.short-pub-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.short-pub-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 721px) {
  .short-app {
    max-width: 420px;
    width: min(100%, 420px);
    height: min(100svh, 860px);
    max-height: min(100svh, 860px);
    margin: 0 auto;
    border-left: 1px solid rgba(255,255,255,.06);
    border-right: 1px solid rgba(255,255,255,.06);
  }
  body.m-tabbar-on .short-app {
    height: min(100svh, 860px);
    max-height: min(100svh, 860px);
  }
  body.page-short main.container {
    display: flex;
    justify-content: center;
    min-height: 100svh;
  }
}
@media (max-width: 720px) {
  .short-app {
    max-width: 100%;
  }
  .short-slide-meta {
    bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .short-rail {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 8px;
  }
}
.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  color: #8b909a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.mobile-tab-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.mobile-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-tab.is-active {
  color: var(--accent, #ff4d6d);
}

@media (max-width: 720px) {
  body.m-tabbar-on .mobile-tabbar { display: grid; }
}


.rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.rec-row:hover {
  background: rgba(255, 77, 109, 0.08);
  border-color: rgba(255, 77, 109, 0.28);
}
.rec-cover {
  flex: 0 0 108px;
  width: 108px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1d24;
}
.rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.rec-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.rec-score-label {
  flex: 0 0 auto;
  min-width: 56px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  letter-spacing: 0;
  line-height: 1;
}
.star {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.18);
}
.star.is-on { color: #f5b301; }


.mine-page { padding-bottom: 8px; }
.mine-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mine-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}
.mine-avatar.has-img {
  padding: 0;
  background: #121018;
}
.mine-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mine-hero-text h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.mine-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.mine-card {
  margin-bottom: 12px;
  padding: 4px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.mine-card-title {
  padding: 10px 14px 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.mine-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mine-row:last-child { border-bottom: 0; }
.mine-row span { color: var(--muted); flex-shrink: 0; }
.mine-row em {
  font-style: normal;
  text-align: right;
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mine-link {
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.mine-link:last-child { border-bottom: 0; }
.mine-link:active { background: rgba(255, 255, 255, 0.04); }


.member-page {
  padding-bottom: 20px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.member-toast {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.member-toast.is-ok {
  background: rgba(5, 150, 105, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
.member-toast.is-err {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
.member-hero {
  position: relative;
  padding: 20px 16px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(232, 163, 23, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(255, 77, 109, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.member-hero.is-vip {
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(232, 163, 23, 0.28), transparent 50%),
    linear-gradient(145deg, rgba(232, 163, 23, 0.2), rgba(255, 77, 109, 0.12));
  border-color: rgba(232, 163, 23, 0.35);
}
.member-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  flex-shrink: 0;
  text-transform: uppercase;
}
.member-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.member-uid {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.member-uid code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffd28a;
  font-size: 12px;
}
.member-mini-btn {
  border: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.member-vip-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  margin-bottom: 6px;
}
.member-hero:not(.is-vip) .member-vip-pill {
  color: #ffc9d4;
  background: rgba(255, 77, 109, 0.2);
}
.member-vip-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.member-stat {
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.member-stat .n {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.member-stat .l {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.member-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.member-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.member-card-head strong { font-size: 15px; }
.member-card-head span { font-size: 12px; color: var(--muted); }
.member-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.member-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.member-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ff4d6d);
}
.member-share-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.member-share-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #e5e7eb;
  font-size: 12px;
}
.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff5a7a, #e11d48);
  white-space: nowrap;
}
.member-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.member-btn.danger { color: #fecaca; }
.member-benefits {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
}
.member-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-invite-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.member-invite-list li:last-child { border-bottom: 0; }
.member-invite-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.member-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.member-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 520px) {
  .member-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .member-stat .n { font-size: 18px; }
  .member-share-row { flex-direction: column; }
}


.download-page { padding-bottom: 12px; }
.download-hero {
  text-align: center;
  padding: 28px 16px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 77, 109, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.download-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #ff4d6d), var(--accent-2, #ff7a45));
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.28);
  overflow: hidden;
}
.download-badge.has-img {
  padding: 0;
  background: #111;
}
.download-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.download-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.download-hero p {
  margin: 0 auto;
  max-width: 28em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.download-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.dl-btn-android {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.dl-btn-ios {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.dl-btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #9aa0ab;
  cursor: not-allowed;
}
.dl-btn:active { filter: brightness(1.06); }
.download-tip {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .rec-cover {
    flex-basis: 96px;
    width: 96px;
  }
  .apps-page .ad-icon-grid,
  .section .ad-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .ad-icon-thumb {
    width: 58px;
    height: 58px;
  }
}
