:root,
html[data-theme="sukuna"] {
  --bg: #070204;
  --accent: #ff2a55;
  --accent-soft: #fb7185;
  --accent-glow: rgba(255, 42, 85, 0.72);
  --name-color: #ffe4e8;
  --desc-color: #f4b8c5;
  --card-bg: rgba(20, 4, 10, 0.42);
  --card-border: rgba(255, 42, 85, 0.24);
  --card-blur: 6px;
  --scrim-opacity: 0.34;
}

html[data-theme="gojo"] {
  --bg: #03080c;
  --accent: #7dd3fc;
  --accent-soft: #bae6fd;
  --accent-glow: rgba(125, 211, 252, 0.78);
  --name-color: #dff6ff;
  --desc-color: #bfe8ff;
  --card-bg: rgba(5, 13, 20, 0.36);
  --card-border: rgba(125, 211, 252, 0.16);
}

html[data-theme="bunny"] {
  --bg: #11060d;
  --accent: #f472b6;
  --accent-soft: #ffb7c5;
  --accent-glow: rgba(244, 114, 182, 0.72);
  --name-color: #fff0f6;
  --desc-color: #fbcfe8;
  --card-bg: rgba(34, 10, 24, 0.36);
  --card-border: rgba(255, 183, 197, 0.24);
}

html[data-theme="mono"] {
  --bg: #070709;
  --accent: #e4e4e7;
  --accent-soft: #a1a1aa;
  --accent-glow: rgba(255, 255, 255, 0.5);
  --name-color: #ffffff;
  --desc-color: #a1a1aa;
  --card-bg: rgba(18, 18, 22, 0.38);
  --card-border: rgba(255, 255, 255, 0.14);
}

html[data-theme="sakura"] {
  --bg: #10070e;
  --accent: #f9a8d4;
  --accent-soft: #fbcfe8;
  --accent-glow: rgba(244, 114, 182, 0.78);
  --name-color: #fff1f7;
  --desc-color: #fbcfe8;
  --card-bg: rgba(28, 10, 24, 0.42);
  --card-border: rgba(249, 168, 212, 0.25);
}

html[data-theme="cyber"] {
  --bg: #030912;
  --accent: #22d3ee;
  --accent-soft: #a5f3fc;
  --accent-glow: rgba(34, 211, 238, 0.78);
  --name-color: #ecfeff;
  --desc-color: #a5f3fc;
  --card-bg: rgba(5, 16, 28, 0.46);
  --card-border: rgba(34, 211, 238, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: #03080c;
}

:root {
  --bio-font: 'Baloo 2', system-ui, -apple-system, sans-serif;
}
html[data-font="baloo"] { --bio-font: 'Baloo 2', system-ui, -apple-system, sans-serif; }
html[data-font="vietnam"] { --bio-font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; }
html[data-font="charm"] { --bio-font: 'Charm', 'Baloo 2', cursive; }
html[data-font="mono"] { --bio-font: 'JetBrains Mono', monospace; }
html[data-font="grotesk"] { --bio-font: 'Space Grotesk', 'Be Vietnam Pro', sans-serif; }
html[data-font="playfair"] { --bio-font: 'Playfair Display', Georgia, serif; }
html[data-font="custom"] { --bio-font: 'YPUserCustomFont', 'Baloo 2', system-ui, sans-serif; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--name-color);
  font-family: var(--bio-font);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

button, a, .banner-card, .lyrics-line, input[type="range"], #enterOverlay {
  touch-action: manipulation;
}

body.custom-cursor,
body.custom-cursor * {
  cursor: none !important;
}

/* Màn hình chào Click-to-Enter */
.enter-overlay {
  position: fixed;
  inset: -2px;
  min-height: 100dvh;
  z-index: 99999;
  background: rgba(3, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: enterPulse 2.8s ease-in-out infinite;
}

@keyframes enterPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}

.enter-icon {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 18px var(--accent-glow), 0 0 36px rgba(56, 189, 248, 0.35);
}

.enter-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  color: #fafafa;
  text-shadow: 0 0 12px #ffffff, 0 0 28px var(--accent-glow);
  letter-spacing: -0.02em;
}

.enter-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--desc-color);
  text-shadow: 0 0 14px var(--accent-glow);
}

.enter-hint {
  margin-top: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  opacity: 0.9;
}

/* Nền video/ảnh + bộ lọc tương phản sâu đen thẫm + vignette điện ảnh */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}

body.bg-monochrome .bg-media {
  filter: grayscale(100%) contrast(1.48) brightness(0.56);
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 12, 0.92) 0%, rgba(3, 8, 12, 0.72) 28%, rgba(3, 8, 12, 0.22) 52%, rgba(3, 8, 12, 0.62) 78%, rgba(3, 8, 12, 0.94) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(3, 8, 12, 0.05) 0%, rgba(3, 8, 12, var(--scrim-opacity)) 100%);
  transition: background 0.25s ease;
}

#emberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Con trỏ tùy chỉnh */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
  transform: translate3d(-100px, -100px, 0);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-soft);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.16s ease, height 0.16s ease, border-color 0.16s ease, opacity 0.2s ease;
}

body.cursor-hover .cursor-ring {
  width: 40px;
  height: 40px;
  border-color: #fff;
}

/* Nút góc trên trái: Icon loa & tim rực neon */
.corner-controls {
  position: fixed;
  top: 16px;
  left: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bare-icon-btn {
  border: 0;
  background: transparent;
  padding: 2px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 16px var(--accent-glow));
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.bare-icon-btn svg { width: 27px; height: 27px; }
.bare-icon-btn:hover { transform: scale(1.1); }

.bare-icon-btn.liked {
  color: #f43f5e;
  filter: drop-shadow(0 0 8px #f43f5e) drop-shadow(0 0 18px rgba(244, 63, 94, 0.85));
}

.volume-slider-box {
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease;
  display: flex;
  align-items: center;
}
.volume-wrap:hover .volume-slider-box { width: 82px; }

#volSlider {
  width: 78px;
  accent-color: var(--accent);
  height: 4px;
}

.admin-corner-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--accent);
  display: grid;
  place-items: center;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-corner-btn svg { width: 19px; height: 19px; }
.admin-corner-btn:hover { opacity: 1; transform: rotate(35deg) scale(1.08); }

/* Thanh thống kê cố định góc dưới trái */
.stats-bar {
  position: fixed;
  left: 22px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.75), 0 0 18px rgba(125, 211, 252, 0.5);
}

.stat-item { display: inline-flex; align-items: center; gap: 5px; }
.stat-item svg { width: 14px; height: 14px; color: #ffffff; filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.65)); }
.stat-sep { opacity: 0.45; font-weight: 400; }

/* Bố cục 2 cột chuẩn zyo.lol Layout 5 */
.layout5-shell {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 28px 100px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 64px;
  align-items: start;
}

/* CỘT TRÁI CỐ ĐỊNH */
.layout5-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.avatar-wrap { position: relative; width: 150px; height: 150px; }

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  border: 2px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.55), 0 0 40px rgba(56, 189, 248, 0.28);
}

.name-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.user-name {
  font-family: var(--bio-font);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.text-shine-sweep {
  background: linear-gradient(90deg, rgba(223, 246, 255, 0.52) 0%, #dff6ff 42%, #ffffff 50%, #dff6ff 58%, rgba(223, 246, 255, 0.52) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 2.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(223, 246, 255, 0.95)) drop-shadow(0 0 20px rgba(125, 211, 252, 0.9)) drop-shadow(0 0 36px rgba(56, 189, 248, 0.6));
}

@keyframes shineSweep {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

.uid-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 16, 23, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.name-row:hover .uid-pill { opacity: 1; transform: translateY(0); }

/* Bio lượn sóng phát sáng đa tầng */
.bio-wave {
  font-family: 'Baloo 2', sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: var(--desc-color);
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.95), 0 0 18px rgba(125, 211, 252, 0.75), 0 0 30px rgba(56, 189, 248, 0.5);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
}

.wave-word { display: inline-flex; }

.wave-char {
  display: inline-block;
  animation: waveChar 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes waveChar {
  0%, 100% { opacity: 0.76; transform: translateY(0) scale(1); }
  45% { opacity: 1; transform: translateY(-2.5px) scale(1.07); text-shadow: 0 0 10px #ffffff, 0 0 22px var(--accent); }
}

/* Hàng icon MXH sáng rực neon kép */
.socials-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 2px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 16px rgba(125, 211, 252, 0.9));
  transition: transform 0.18s ease, filter 0.18s ease;
}
.social-link svg { width: 32px; height: 32px; }
.social-link:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 22px var(--accent));
}

/* Menu nhảy mục bên trái (Active in hoa trắng phát sáng, inactive Charm chữ nghiêng) */
.section-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nav-link {
  border: 0;
  background: transparent;
  color: rgba(223, 246, 255, 0.56);
  font-family: 'Charm', cursive;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  padding: 2px 0;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-line {
  width: 24px;
  height: 1.5px;
  border-radius: 99px;
  background: rgba(223, 246, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover { color: rgba(223, 246, 255, 0.92); text-shadow: 0 0 12px var(--accent-glow); }

.nav-link.active {
  font-family: 'Baloo 2', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px var(--accent-glow);
}

.nav-link.active .nav-line {
  width: 52px;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 18px var(--accent);
}

/* CỘT PHẢI NỘI DUNG */
.layout5-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  max-width: 610px;
}

.bio-section { scroll-margin-top: 76px; }

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #eefaff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 18px var(--accent), 0 0 32px rgba(56, 189, 248, 0.65);
  margin-bottom: 12px;
}

.section-title.stylized {
  font-family: 'Charm', cursive;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.25;
}

/* Thẻ kính mờ sâu tối đậm viền ánh băng */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(125, 211, 252, 0.16);
}

/* Mục 1A: Thẻ Discord */
.discord-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
}

.discord-ava-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }

.discord-ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.55), 0 0 34px rgba(56, 189, 248, 0.25);
}

.discord-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.discord-status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid #060d14;
  background: #23a55a;
  z-index: 3;
}
.discord-status-dot.status-idle { background: #f59e0b; }
.discord-status-dot.status-dnd { background: #ef4444; }
.discord-status-dot.status-offline { background: #71717a; }

.discord-meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.discord-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.discord-name { font-size: 16.5px; font-weight: 800; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.55); }
.discord-clan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #e2f3fc;
}
.clan-badge-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
}

.discord-activity {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--desc-color);
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.discord-view-btn {
  margin-top: 5px;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 15px;
  border-radius: 999px;
  background: #23a55a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(35, 165, 90, 0.45);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.discord-view-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Mục 1B: Trình phát nhạc + Lời bài hát đồng bộ neon */
.player-card { padding: 18px 20px 14px; }
.player-top { display: flex; align-items: center; gap: 14px; }

.track-cover {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(125, 211, 252, 0.25);
}

.player-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.player-upper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }

.eq-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; flex-shrink: 0; }
.eq-bars span { width: 3px; height: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.eq-bars.playing span:nth-child(1) { animation: eq 0.65s ease-in-out infinite alternate; }
.eq-bars.playing span:nth-child(2) { animation: eq 0.45s ease-in-out 0.15s infinite alternate; }
.eq-bars.playing span:nth-child(3) { animation: eq 0.75s ease-in-out 0.25s infinite alternate; }
.eq-bars.playing span:nth-child(4) { animation: eq 0.52s ease-in-out 0.1s infinite alternate; }

@keyframes eq { from { height: 4px; } to { height: 14px; } }

.track-title-wrap { min-width: 0; }

.track-title {
  font-family: 'Charm', cursive;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 22px rgba(56, 189, 248, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.progress-row { display: flex; align-items: center; gap: 10px; }

.time-text {
  font-family: 'Baloo 2', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
  min-width: 28px;
}

/* Custom thanh tua nhạc phát sáng neon + chấm tròn trắng */
.progress-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--prog, 0%), rgba(125, 211, 252, 0.22) var(--prog, 0%), rgba(125, 211, 252, 0.22) 100%);
  box-shadow: 0 0 10px var(--accent-glow);
  outline: none;
  cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 18px var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.progress-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.progress-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 18px var(--accent);
  cursor: pointer;
}

.player-btns { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.ctrl-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.ctrl-btn svg { width: 17px; height: 17px; }
.ctrl-btn:hover { transform: scale(1.12); opacity: 0.9; }

.play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #041018;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(56, 189, 248, 0.75);
  transition: transform 0.16s ease;
}
.play-btn svg { width: 16px; height: 16px; }
.play-btn:hover { transform: scale(1.08); }

/* Hộp lời bài hát đồng bộ phát sáng neon */
.lyrics-stage { margin-top: 12px; text-align: center; }

.lyrics-clef {
  font-size: 18px;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent), 0 0 22px var(--accent-glow);
  margin-bottom: 4px;
}

.lyrics-box {
  height: 114px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.lyrics-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 36px 0;
}

.lyrics-line {
  border: 0;
  background: transparent;
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--desc-color);
  opacity: 0.42;
  filter: blur(1.4px);
  text-align: center;
  cursor: pointer;
  padding: 2px 10px;
  transition: all 0.28s ease;
}

.lyrics-line:hover { opacity: 0.85; filter: blur(0); }

.lyrics-line.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1.06);
  color: #dff6ff;
  text-shadow: 0 0 10px var(--accent), 0 0 22px #38bdf8, 0 0 34px rgba(125, 211, 252, 0.75);
  font-weight: 800;
}

/* Mục 2: Giới thiệu */
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.terminal-controls { opacity: 0.72; flex-shrink: 0; font-size: 12px; }

.about-heading {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.about-badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 8px;
}

.about-badges li {
  font-size: 13px;
  font-weight: 700;
  color: var(--desc-color);
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.45);
  display: flex;
  align-items: center;
  gap: 7px;
}

.about-badges li::before { content: "•"; color: var(--accent); text-shadow: 0 0 8px var(--accent); }

.about-badges code {
  font-family: 'Baloo 2', sans-serif;
  background: rgba(12, 18, 26, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
}

.about-rule { color: rgba(158, 201, 216, 0.5); font-family: 'JetBrains Mono', monospace; font-size: 12px; margin: 12px 0; }

.about-sub {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 9px;
}

.about-quote-list {
  border-left: 3px solid var(--accent);
  box-shadow: -4px 0 12px -4px var(--accent-glow);
  padding-left: 12px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--desc-color);
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.45);
  line-height: 1.5;
  margin-bottom: 14px;
}

.about-community { font-size: 13.5px; font-weight: 700; color: var(--desc-color); }
.about-community a { color: var(--accent); font-weight: 800; text-decoration: none; text-shadow: 0 0 10px var(--accent-glow); }

/* Mục 3: Kỹ năng */
.skills-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--accent-soft);
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 14px;
}

.skills-groups { display: grid; gap: 14px; }
.skill-group-title { font-size: 14px; font-weight: 800; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.45); margin-bottom: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: var(--name-color);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-tag:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 16px var(--accent-glow); }

/* Mục 4: Banner 3D nghiêng theo chuột */
.banners-grid { display: grid; gap: 16px; perspective: 1000px; }

.banner-card {
  position: relative;
  display: block;
  height: 190px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.banner-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px var(--accent-glow); }
.banner-card img,
.banner-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.45s ease; }
.banner-card:hover img,
.banner-card:hover video { transform: scale(1.04); }
.banner-card.banner-locked {
  cursor: not-allowed;
  border-color: rgba(125, 211, 252, 0.14);
}
.banner-card.banner-locked:hover {
  border-color: rgba(125, 211, 252, 0.22);
  box-shadow: none;
}
.banner-card.banner-locked video,
.banner-card.banner-locked img {
  filter: saturate(0.75) brightness(0.76);
  transform: none !important;
}
.banner-lock-pill {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 8, 12, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: var(--accent-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.banner-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(3, 8, 12, 0.88) 100%); }
.banner-info { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.banner-title { font-size: 19px; font-weight: 800; color: #fff; text-shadow: 0 0 14px rgba(125, 211, 252, 0.65); }
.banner-domain { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-soft); margin-top: 2px; }
.banner-arrow { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: rgba(125, 211, 252, 0.18); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; font-weight: 800; }

@media (hover: none) {
  .social-icon:hover,
  .glass-card:hover,
  .skill-tag:hover,
  .banner-card:hover,
  .discord-view-btn:hover {
    transform: none;
  }
  .banner-card:active:not(.banner-locked),
  .social-icon:active,
  .play-btn:active,
  .ctrl-btn:active,
  .discord-view-btn:active {
    transform: scale(0.96);
  }
  .volume-slider-box { width: 72px; }
}

@media (max-width: 960px) {
  .corner-controls {
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(3, 8, 12, 0.62);
    border: 1px solid rgba(125, 211, 252, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .bare-icon-btn svg { width: 22px; height: 22px; }
  .layout5-shell { grid-template-columns: 1fr; gap: 26px; padding: 66px 14px calc(76px + env(safe-area-inset-bottom)); }
  .layout5-sidebar { position: static; align-items: center; text-align: center; gap: 11px; }
  .avatar-wrap, .profile-avatar { width: 126px; height: 126px; }
  .user-name { font-size: 2.2rem; }
  .bio-wave { justify-content: center; text-align: center; font-size: 15px; }
  .section-nav { display: none; }
  .socials-row { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .discord-activity { max-width: 100%; }
  .stats-bar {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(10px + env(safe-area-inset-bottom));
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(3, 8, 12, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@media (max-width: 540px) {
  .layout5-main { gap: 24px; }
  .section-title.stylized { font-size: 1.55rem; margin-bottom: 10px; }
  .glass-card { border-radius: 20px; padding: 15px 15px; }
  .discord-card { gap: 13px; padding: 14px 15px; }
  .discord-ava-wrap, .discord-ava { width: 60px; height: 60px; }
  .discord-decor { width: 74px; height: 74px; }
  .discord-name { font-size: 15.5px; }
  .discord-activity { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .player-top { gap: 11px; }
  .track-cover { width: 50px; height: 50px; }
  .track-title { font-size: 16.5px; }
  .progress-slider::-webkit-slider-thumb { width: 14px; height: 14px; }
  .lyrics-box { height: 104px; }
  .lyrics-line { font-size: 13.5px; }
  .terminal-bar { flex-wrap: wrap; font-size: 12px; gap: 6px; }
  .about-badges li { flex-wrap: wrap; }
  .banner-card { height: 158px; border-radius: 20px; }
  .banner-info { left: 16px; right: 16px; bottom: 14px; }
  .banner-title { font-size: 16.5px; }
  .banner-domain { font-size: 11px; }
  .stats-bar { font-size: 12px; gap: 8px; }
}


/* ==================== MULTI-LAYOUT & PLATFORM ENHANCEMENTS (v9) ==================== */
.avatar-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-badges:empty { display: none; }

.p-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(6, 13, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--b-col, var(--accent));
  text-shadow: 0 0 10px var(--b-col, var(--accent-glow));
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pro-diamond {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.9));
  animation: diamondFloat 2.4s ease-in-out infinite;
}
@keyframes diamondFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.08); }
}

/* Name Effects */
.text-neon {
  color: var(--name-color);
  -webkit-text-fill-color: var(--name-color);
  text-shadow: 0 0 10px #fff, 0 0 22px var(--accent), 0 0 42px var(--accent-glow);
}
.text-rainbow {
  background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899, #facc15, #22c55e, #38bdf8);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 3.2s linear infinite;
  filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.75));
}
.text-fire {
  background: linear-gradient(180deg, #fef08a 0%, #fb923c 48%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.9)) drop-shadow(0 0 26px rgba(239, 68, 68, 0.8));
}
.text-plain {
  color: var(--name-color);
  -webkit-text-fill-color: var(--name-color);
}

/* Template Preview Floating Bar (/t/{slug}) */
.tpl-preview-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  color: #e0f2fe;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.tpl-preview-btns { display: flex; gap: 6px; }
.tpl-pbtn {
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.tpl-pbtn.primary {
  border: 0;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #041018;
}

.yb-powered {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 40;
  font-size: 12px;
  font-weight: 700;
  color: rgba(223, 246, 255, 0.78);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.yb-powered:hover { border-color: var(--accent); color: #fff; }

.user-handle { display: none; }
.card-socials-slot:empty { display: none; }
.card-stats-footer { display: none; }

/* Modern Banner Header & Tab Switcher */
.modern-banner {
  position: relative;
  width: 100%;
  height: 158px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(8, 10, 16, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.modern-banner img,
.modern-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modern-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 48%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}
.modern-tabs {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modern-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.modern-tab.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ==================== UNIFIED FROSTED CARD LAYOUTS (modern, sleek, classic, simplistic) ==================== */
html:not([data-layout="yang_2col"]) body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
html:not([data-layout="yang_2col"]) .bg-scrim {
  background: radial-gradient(ellipse at 50% 50%, rgba(4, 6, 14, 0.03) 0%, rgba(4, 6, 14, var(--scrim-opacity, 0.28)) 100%);
}
html:not([data-layout="yang_2col"]) .stats-bar { display: none; }
html:not([data-layout="yang_2col"]) .corner-controls {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 10px;
}
html:not([data-layout="yang_2col"]) .bare-icon-btn {
  color: rgba(255, 255, 255, 0.9);
  filter: none;
}
html:not([data-layout="yang_2col"]) .bare-icon-btn svg { width: 20px; height: 20px; }

html:not([data-layout="yang_2col"]) .layout5-shell {
  --card-rgb: 14, 16, 24;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  margin: auto;
  padding: 0;
  gap: 0;
  border-radius: var(--card-radius, 26px);
  overflow: hidden;
  background: rgba(var(--card-rgb), var(--card-opacity, 0.28));
  backdrop-filter: blur(calc(var(--card-blur, 8px) + 5px)) saturate(135%);
  -webkit-backdrop-filter: blur(calc(var(--card-blur, 8px) + 5px)) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
html[data-theme="sakura"]:not([data-layout="yang_2col"]) .layout5-shell {
  --card-rgb: 34, 14, 30;
  border-color: rgba(255, 210, 232, 0.20);
}
html[data-theme="bunny"]:not([data-layout="yang_2col"]) .layout5-shell {
  --card-rgb: 28, 12, 28;
  border-color: rgba(244, 114, 182, 0.20);
}
html[data-theme="cyber"]:not([data-layout="yang_2col"]) .layout5-shell {
  --card-rgb: 8, 20, 32;
  border-color: rgba(34, 211, 238, 0.20);
}
html[data-theme="sukuna"]:not([data-layout="yang_2col"]) .layout5-shell {
  --card-rgb: 26, 8, 14;
  border-color: rgba(251, 113, 133, 0.20);
}
html:not([data-layout="yang_2col"]) body.bg-monochrome .layout5-shell {
  --card-rgb: 12, 12, 16;
  border-color: rgba(255, 255, 255, 0.15);
}

html:not([data-layout="yang_2col"]) .layout5-sidebar {
  position: static;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px 26px 14px;
  gap: 5px;
}
html:not([data-layout="yang_2col"]) .layout5-shell.has-card-banner .layout5-sidebar {
  padding-top: 0;
}
html:not([data-layout="yang_2col"]) .avatar-header-row {
  width: 100%;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 4;
}
html:not([data-layout="yang_2col"]) .layout5-shell.has-card-banner .avatar-header-row {
  margin-top: -44px;
}
html:not([data-layout="yang_2col"]) .avatar-wrap,
html:not([data-layout="yang_2col"]) .profile-avatar {
  width: 88px;
  height: 88px;
}
html:not([data-layout="yang_2col"]) .profile-avatar {
  border: 2.5px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), 0 0 18px var(--accent-glow);
}
html:not([data-layout="yang_2col"]) .profile-badges {
  background: rgba(10, 8, 16, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 13px;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html:not([data-layout="yang_2col"]) .p-badge-chip {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 14px;
  text-shadow: 0 0 10px var(--b-col, var(--accent-glow));
}
html:not([data-layout="yang_2col"]) .p-badge-txt { display: none; }
html:not([data-layout="yang_2col"]) .uid-pill { display: none; }

html:not([data-layout="yang_2col"]) .name-row { margin-top: 8px; gap: 7px; }
html:not([data-layout="yang_2col"]) .user-name { font-size: 1.52rem; line-height: 1.2; }
html:not([data-layout="yang_2col"]) .user-handle {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  margin-top: -1px;
}
html:not([data-layout="yang_2col"]) .bio-wave {
  font-family: var(--bio-font);
  font-style: normal;
  font-size: 13.8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  margin-top: 6px;
  line-height: 1.5;
  gap: 0 4px;
  justify-content: flex-start;
  text-align: left;
}
html:not([data-layout="yang_2col"]) .wave-char { animation: none; opacity: 1; }
html:not([data-layout="yang_2col"]) .section-nav { display: none; }

html:not([data-layout="yang_2col"]) .layout5-main {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 0;
  padding: 0 26px 4px;
  gap: 14px;
}
html:not([data-layout="yang_2col"]) #sec-discord .section-title { display: none; }
html[data-layout="modern"] .section-title { font-size: 1.22rem; margin-bottom: 10px; }
html[data-layout="modern"] .bio-section.mtab-hidden { display: none; }

/* Embedded compact Discord & Music cards matching reference glass layers */
html:not([data-layout="yang_2col"]) .discord-card {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: none;
  cursor: pointer;
}
html:not([data-layout="yang_2col"]) .discord-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .discord-ava-wrap,
html:not([data-layout="yang_2col"]) .discord-ava { width: 44px; height: 44px; }
html:not([data-layout="yang_2col"]) .discord-decor { width: 54px; height: 54px; }
html:not([data-layout="yang_2col"]) .discord-status-dot { width: 11px; height: 11px; border-width: 2px; right: 0; bottom: 0; }
html:not([data-layout="yang_2col"]) .discord-name { font-size: 14px; text-shadow: none; }
html:not([data-layout="yang_2col"]) .discord-clan {
  font-size: 10.5px;
  padding: 1.5px 7px;
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(192, 132, 252, 0.34);
  color: #f3e8ff;
}
html:not([data-layout="yang_2col"]) .discord-activity { font-size: 12px; color: rgba(255, 255, 255, 0.72); text-shadow: none; }
html:not([data-layout="yang_2col"]) .discord-view-btn { display: none; }

html:not([data-layout="yang_2col"]) .player-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .player-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .player-top { gap: 12px; }
html:not([data-layout="yang_2col"]) .track-cover {
  width: 44px; height: 44px; border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
html:not([data-layout="yang_2col"]) .track-title {
  font-family: var(--bio-font);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: none;
}
html:not([data-layout="yang_2col"]) .track-artist {
  display: block !important;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html:not([data-layout="yang_2col"]) .eq-bars span {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .time-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: none;
}
html:not([data-layout="yang_2col"]) .progress-slider {
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.92) var(--prog, 0%), rgba(255, 255, 255, 0.18) var(--prog, 0%), rgba(255, 255, 255, 0.18) 100%);
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .progress-slider::-webkit-slider-thumb { width: 9px; height: 9px; box-shadow: none; }
html:not([data-layout="yang_2col"]) .play-btn {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}
html:not([data-layout="yang_2col"]) .ctrl-btn { color: rgba(255, 255, 255, 0.78); filter: none; }
html:not([data-layout="yang_2col"]) .lyrics-stage { display: none; }
html:not([data-layout="yang_2col"]) body.lyrics-open .lyrics-stage { display: block; }

html:not([data-layout="yang_2col"]) #cardSocialsSlot .socials-row {
  justify-content: center;
  gap: 20px;
  margin: 18px 0 6px;
}
html:not([data-layout="yang_2col"]) #cardSocialsSlot .social-link {
  width: 34px; height: 34px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.42));
}
html:not([data-layout="yang_2col"]) #cardSocialsSlot .social-link svg { width: 27px; height: 27px; }
html:not([data-layout="yang_2col"]) #cardSocialsSlot .social-link:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

html:not([data-layout="yang_2col"]) .card-stats-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 26px 18px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}
.csf-items { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.csf-item { display: inline-flex; align-items: center; gap: 5px; }
.csf-item svg { width: 13.5px; height: 13.5px; opacity: 0.85; }
.csf-uid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
}

/* Variants per Card Layout */
html[data-layout="sleek"] .modern-banner,
html[data-layout="classic"] .modern-banner { height: 136px; }
html[data-layout="sleek"] .modern-tabs,
html[data-layout="classic"] .modern-tabs { display: none; }
html[data-layout="sleek"] #sec-about,
html[data-layout="sleek"] #sec-skills,
html[data-layout="classic"] #sec-about,
html[data-layout="classic"] #sec-skills { display: none; }
html[data-layout="classic"] .layout5-shell { max-width: 540px; }

html[data-layout="simplistic"] .layout5-shell { max-width: 490px; }
html[data-layout="simplistic"] .modern-banner,
html[data-layout="simplistic"] .section-title,
html[data-layout="simplistic"] #sec-about,
html[data-layout="simplistic"] #sec-skills,
html[data-layout="simplistic"] #sec-links,
html[data-layout="simplistic"] .lyrics-stage { display: none !important; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-trail-canvas { display: none !important; }
  body.custom-cursor, body.custom-cursor * { cursor: auto !important; }
  .glass-card,
  html:not([data-layout="yang_2col"]) .layout5-shell {
    backdrop-filter: blur(8px) saturate(125%);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
  }
}

@media (max-width: 640px) {
  .yb-powered { display: none !important; }
  .tpl-preview-bar {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    justify-content: space-between;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .admin-corner-btn {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(8, 10, 16, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    opacity: 0.85;
  }
  .volume-slider-box { width: 64px; }
  #volSlider { width: 60px; }
  html:not([data-layout="yang_2col"]) body {
    padding: calc(58px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
  }
  html:not([data-layout="yang_2col"]) .layout5-shell {
    width: min(560px, calc(100vw - 16px));
    border-radius: 22px;
  }
  html:not([data-layout="yang_2col"]) .modern-banner { height: 118px; }
  html:not([data-layout="yang_2col"]) .modern-tabs { top: 10px; right: 10px; padding: 3px; }
  html:not([data-layout="yang_2col"]) .modern-tab { padding: 5px 10px; font-size: 11.5px; }
  html:not([data-layout="yang_2col"]) .layout5-shell.has-card-banner .avatar-header-row { margin-top: -39px; }
  html:not([data-layout="yang_2col"]) .avatar-wrap,
  html:not([data-layout="yang_2col"]) .profile-avatar { width: 78px; height: 78px; }
  html:not([data-layout="yang_2col"]) .profile-badges { padding: 5px 10px; gap: 8px; }
  html:not([data-layout="yang_2col"]) .user-name { font-size: 1.38rem; }
  html:not([data-layout="yang_2col"]) .layout5-sidebar { padding: 18px 16px 12px; }
  html:not([data-layout="yang_2col"]) .layout5-main { padding: 0 16px 6px; gap: 12px; }
  html:not([data-layout="yang_2col"]) .card-stats-footer { padding: 10px 16px 16px; flex-wrap: wrap; gap: 8px; }
  html:not([data-layout="yang_2col"]) #cardSocialsSlot .socials-row { gap: 14px; margin: 14px 0 4px; flex-wrap: wrap; }
  html:not([data-layout="yang_2col"]) #cardSocialsSlot .social-link { width: 40px; height: 40px; }
  html:not([data-layout="yang_2col"]) .play-btn { width: 36px; height: 36px; }
  .ctrl-btn { padding: 6px; min-width: 34px; min-height: 34px; }
  .gb-input, .gb-select { font-size: 16px; padding: 9px 11px; }
  .gb-submit { padding: 9px 14px; }
  .rp-modal { padding: 16px; border-radius: 16px; }
}

/* ==================== ANIMATED AVATAR FRAMES ==================== */
@keyframes ypFrameSpin { to { transform: rotate(360deg); } }
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.avatar-wrap .profile-avatar { position: relative; z-index: 1; }
.avatar-wrap[data-frame="none"] .profile-avatar {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.avatar-wrap[data-frame="sakura_ring"]::before {
  opacity: 1;
  background: conic-gradient(from 0deg, #f9a8d4, #fff1f7, #f472b6, #fbcfe8, #f9a8d4);
  filter: blur(2px);
  animation: ypFrameSpin 5s linear infinite;
}
.avatar-wrap[data-frame="cyber_glow"]::before {
  opacity: 1;
  background: conic-gradient(from 0deg, #22d3ee, #818cf8, #c084fc, #22d3ee);
  filter: blur(2.5px);
  animation: ypFrameSpin 3.6s linear infinite;
}
.avatar-wrap[data-frame="gold_og"]::before {
  opacity: 1;
  background: conic-gradient(from 0deg, #fde047, #f59e0b, #fef08a, #d97706, #fde047);
  filter: blur(2px);
  animation: ypFrameSpin 4.4s linear infinite;
}
.avatar-wrap[data-frame="rainbow_ring"]::before {
  opacity: 1;
  background: conic-gradient(from 0deg, #38bdf8, #a855f7, #ec4899, #facc15, #22c55e, #38bdf8);
  filter: blur(2.5px);
  animation: ypFrameSpin 4s linear infinite;
}

/* ==================== MINI GUESTBOOK & REPORT MODAL ==================== */
.gb-card { padding: 14px 16px; }
html:not([data-layout="yang_2col"]) .gb-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: none;
}
.gb-form { display: flex; flex-direction: column; gap: 8px; }
.gb-row { display: flex; gap: 8px; align-items: center; }
.gb-input, .gb-select {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 8px 11px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.gb-input { flex: 1; min-width: 0; }
.gb-input:focus, .gb-select:focus { border-color: var(--accent); }
.gb-select option, #rpReason option { background: #0c0e14; color: #fff; }
.gb-submit {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
  color: #050810;
  cursor: pointer;
  flex-shrink: 0;
}
.gb-status { font-size: 12px; color: var(--accent-soft); min-height: 16px; margin-top: 4px; }
.gb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
.gb-item {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.8px;
}
.gb-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.gb-item-author { font-weight: 800; color: #fff; }
.gb-item-msg { color: rgba(255, 255, 255, 0.84); line-height: 1.45; word-break: break-word; }

.csf-right { display: inline-flex; align-items: center; gap: 10px; }
.csf-report-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.16s ease;
}
.csf-report-btn:hover { color: #fda4af; }

.rp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rp-backdrop.open { display: flex; }
.rp-modal {
  width: min(400px, 100%);
  background: #0d0f16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.rp-x { border: 0; background: transparent; color: #94a3b8; font-size: 16px; cursor: pointer; }

/* YouTube & Spotify track badges + compact Spotify embed */
.track-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.track-source-link {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em; text-decoration: none; flex-shrink: 0;
  transition: filter 0.16s ease, transform 0.16s ease;
}
.track-source-link:hover { filter: brightness(1.15); transform: translateY(-1px); }
.track-source-link.is-yt { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.42); }
.track-source-link.is-sp { background: rgba(34, 197, 94, 0.2); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.42); }
.spotify-embed-wrap { margin-top: 10px; border-radius: 12px; overflow: hidden; }

/* Custom Pro Cursor Shapes */
.cursor-dot.has-shape {
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.85));
}

/* Smooth 60fps 3D Glass Profile Card Tilt + Specular Sheen */
.layout5-shell.card-tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.layout5-shell.card-tilt-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(360px circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%), rgba(255, 255, 255, 0.1), transparent 68%);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
