:root {
  --bg-dark: rgba(10,10,25,0.85);
  --panel-bg: rgba(0,0,0,0.35);
  --border-light: rgba(255,255,255,0.06);
  --text-primary: #fff;
  --text-dim: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.25);
  --accent-pink: #f093fb;
  --accent-red: #f5576c;
  --accent-blue: #4facfe;
  --accent-green: #43e97b;
  --gradient-primary: linear-gradient(135deg, var(--accent-pink), var(--accent-red));
  --gradient-blue: linear-gradient(135deg, var(--accent-blue), #00f2fe);
  --gradient-green: linear-gradient(135deg, var(--accent-green), #38f9d7);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 50px;
  --sidebar-w: 200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  height: 100vh; width: 100vw; overflow: hidden;
  color: var(--text-primary); user-select: none;
}

#background-media {
  position: fixed; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; z-index: -2;
}

.screen-mask {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--bg-dark), rgba(15,15,30,0.85));
  z-index: -1;
}

/* floating orbs */
.floating-orb {
  position: fixed; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  z-index: 0; opacity: 0.25;
}
.orb-pink {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f5af19, transparent 70%);
  top: -150px; right: -100px;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.orb-blue {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
  bottom: -100px; left: 5%;
  animation: orb-drift 14s ease-in-out infinite alternate-reverse;
}
.orb-green {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-green), transparent 70%);
  top: 40%; right: 10%;
  animation: orb-drift 10s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-40px) scale(1.15); }
}

/* layout */
.layout-wrapper {
  position: relative; z-index: 1;
  display: flex; height: 100vh; width: 100vw;
}

/* menu toggle (hamburger) */
.menu-toggle {
  display: none; position: fixed; top: 1rem; left: 1rem;
  width: 40px; height: 40px; z-index: 20;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 0; transition: all var(--transition);
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* sidebar overlay (mobile) */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 8;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }

/* side panel */
.side-panel {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--panel-bg);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  padding: 1.5rem 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative; z-index: 9;
}

.panel-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1rem 1.2rem; border-bottom: 1px solid var(--border-light);
}

.panel-avatar {
  position: relative; width: 60px; height: 60px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(240,147,251,0.5);
  box-shadow: 0 0 20px rgba(240,147,251,0.15);
  cursor: pointer; transition: transform var(--transition);
}
.panel-avatar:hover { transform: scale(1.1); }
.panel-avatar video,
.panel-avatar img { width: 100%; height: 100%; object-fit: cover; }

.online-badge {
  position: absolute; bottom: 0; right: 0;
  width: 14px; height: 14px;
  background: var(--accent-green); border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.4);
}

.panel-nickname {
  margin-top: 0.6rem;
  font-size: 0.95rem; font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.panel-title {
  font-size: 0.7rem; color: var(--text-muted);
  margin-top: 0.15rem; letter-spacing: 1px;
}

/* navigation */
.page-nav {
  flex: 1; padding: 0.8rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}

.nav-entry {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: transparent; border: none; border-radius: var(--radius-md);
  color: var(--text-dim); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition);
  width: 100%; text-align: left; position: relative;
}
.nav-entry svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-entry:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.nav-entry.active {
  background: linear-gradient(135deg, rgba(240,147,251,0.15), rgba(245,87,108,0.1));
  color: var(--text-primary);
}
.nav-entry.active::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 50%;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
}

.panel-footer {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1rem 0.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.footer-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0.4rem 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all var(--transition); letter-spacing: 0.5px;
}
.footer-btn-primary {
  background: var(--gradient-primary); color: var(--text-primary);
}
.footer-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.footer-btn-secondary {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.footer-btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); transform: translateY(-1px); }

/* main stage */
.main-stage {
  flex: 1; overflow-y: auto;
  padding: 2rem 3rem;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.main-stage::-webkit-scrollbar { width: 4px; }
.main-stage::-webkit-scrollbar-track { background: transparent; }
.main-stage::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.stage { display: none; }
.stage.active { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; animation: stage-in 0.5s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.stage-container { width: 100%; max-width: 750px; }

.stage-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.stage-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 1.1rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-light);
}
.stage-title {
  font-size: 1.6rem; font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stage-divider { width: 50px; height: 3px; background: linear-gradient(90deg, var(--accent-pink), var(--accent-red), transparent); border-radius: 3px; margin-bottom: 1.8rem; }
.stage-hint { color: var(--text-dim); margin-bottom: 1.2rem; font-size: 0.85rem; }

/* home */
.welcome-area {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.6rem;
}

.avatar-cluster {
  position: relative; display: flex; flex-direction: column; align-items: center;
  margin-bottom: 0.8rem;
}

.music-viz {
  display: block; width: 280px; height: 54px;
  border-radius: var(--radius-md); opacity: 0.9;
  margin-top: 0.8rem;
}

.avatar-frame {
  position: relative; width: 130px; height: 130px;
  border-radius: 50%; overflow: hidden;
  cursor: pointer; transition: transform var(--transition);
}
.avatar-frame:hover { transform: scale(1.08); }

.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-red), var(--accent-blue), var(--accent-green)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring-spin 3s linear infinite;
}
@keyframes ring-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.avatar-frame video,
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.avatar-aura {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,147,251,0.2), transparent 70%);
  animation: aura-pulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aura-pulse {
  from { transform: translate(-50%,-50%) scale(0.9); opacity: 0.6; }
  to { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
}

.user-name {
  font-size: 3rem; font-weight: 800; letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.2;
}
.user-slogan {
  font-size: 1.05rem; color: rgba(255,255,255,0.55);
  min-height: 1.8rem; letter-spacing: 1px;
}
.user-slogan::after { content: "|"; animation: blink 0.8s step-end infinite; color: var(--accent-pink); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.user-brief {
  color: rgba(255,255,255,0.35); font-size: 0.85rem;
  letter-spacing: 2px; margin-top: 0.2rem;
}

/* contacts */
.contact-wall { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }

.contact-entry {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.2rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center; text-decoration: none;
  transition: all var(--transition);
}
.contact-entry:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.contact-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); transition: transform var(--transition); background: rgba(255,255,255,0.08); }
.contact-entry:hover .contact-icon { transform: scale(1.1) rotate(5deg); }
.contact-icon svg { width: 20px; height: 20px; color: var(--text-primary); }

.contact-name { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.contact-addr { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ===== Full-page video grid ===== */
.stage.stage-video {
  padding: 2rem 3rem; width: 100%; min-height: 100%;
  align-items: flex-start; justify-content: flex-start;
}
.stage.stage-video.active {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start;
}
.video-section-header {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  width: 100%; padding: 0.5rem 0; flex: 1;
  align-content: start;
}

.video-grid-item {
  position: relative; aspect-ratio: 16/9;
  border-radius: 14px; overflow: visible;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.video-grid-item:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 2;
}

/* pin badge */
.pin-badge {
  position: absolute; top: 0; left: 0; z-index: 10;
  padding: 6px 14px 4px 10px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: none; border-top: none;
  border-radius: 0 0 10px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6px));
  transition: all 0.3s ease;
}
.video-grid-item:hover .pin-badge {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.15);
  padding: 6px 18px 4px 10px;
}
.pin-badge::before {
  content: "✦";
  margin-right: 4px;
  font-size: 0.55rem;
  color: var(--accent-pink);
}
.video-grid-item.pinned .video-frame {
  box-shadow:
    0 0 25px rgba(240,147,251,0.25),
    0 0 60px rgba(79,172,254,0.12),
    0 0 80px rgba(240,147,251,0.06),
    inset 0 0 30px rgba(0,0,0,0.1);
}
.video-grid-item.pinned:hover .video-frame {
  box-shadow:
    0 0 35px rgba(240,147,251,0.4),
    0 0 80px rgba(79,172,254,0.2),
    0 0 100px rgba(240,147,251,0.1),
    inset 0 0 30px rgba(0,0,0,0.1);
}

/* decorative gradient border frame */
.video-frame {
  position: relative; width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-red), var(--accent-blue), var(--accent-green));
  background-size: 300% 300%;
  animation: border-shift 4s ease-in-out infinite;
  box-shadow:
    0 0 20px rgba(240,147,251,0.15),
    0 0 60px rgba(79,172,254,0.08),
    inset 0 0 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.video-grid-item:hover .video-frame {
  box-shadow:
    0 0 30px rgba(240,147,251,0.3),
    0 0 80px rgba(79,172,254,0.18),
    inset 0 0 30px rgba(0,0,0,0.1);
}
@keyframes border-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.video-frame-bg {
  position: absolute; inset: 3px; border-radius: 11px;
  background: rgba(0,0,0,0.85);
  z-index: 0;
}

.video-frame video {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 11px;
}

/* shine overlay on hover */
.video-shine {
  position: absolute; inset: 3px; border-radius: 11px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
}
.video-grid-item:hover .video-shine {
  opacity: 1;
}

/* corner decorations */
.video-corner {
  position: absolute; width: 20px; height: 20px;
  border-color: rgba(255,255,255,0.25);
  border-style: solid; border-width: 0;
  transition: all 0.3s ease;
  opacity: 0.6; z-index: 3;
  pointer-events: none;
}
.video-corner.tl { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.video-corner.tr { top: -6px; right: -6px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.video-corner.bl { bottom: -6px; left: -6px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.video-corner.br { bottom: -6px; right: -6px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }
.video-grid-item:hover .video-corner {
  opacity: 1;
  border-color: var(--accent-pink);
  width: 28px; height: 28px;
}
.video-grid-item:hover .video-corner.tr,
.video-grid-item:hover .video-corner.br { border-color: var(--accent-blue); }

/* video count badge */
.video-grid-item::after {
  counter-increment: video-count;
  content: counter(video-count);
  position: absolute; bottom: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.7);
  z-index: 4; pointer-events: none;
  transition: all 0.3s ease;
}
.video-grid-item:hover::after {
  background: var(--gradient-primary);
  color: #fff; border-color: transparent;
  transform: scale(1.15);
}
.video-grid { counter-reset: video-count; }

.empty-videos {
  grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
  color: var(--text-muted); font-size: 0.95rem;
  background: rgba(255,255,255,0.02); border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

/* password locked - blurred content behind */
.video-grid-wrap {
  position: relative;
}
.video-grid-wrap.locked .video-grid-item {
  opacity: 0.3;
  transition: opacity 0.3s;
}
.video-grid-wrap.locked::after {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.15);
  z-index: 5; pointer-events: none;
}

.password-prompt {
  text-align: center; padding: 1.8rem 2rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 10; position: relative;
}
@media (min-width: 769px) {
  .password-prompt {
    grid-column: 2; grid-row: 2;
    margin: 0;
  }
}
@media (max-width: 768px) {
  .password-prompt {
    grid-column: 1 / -1; grid-row: 1;
    margin: 0 0 1rem;
  }
}
.lock-icon {
  width: 32px; height: 32px; margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.password-prompt p {
  color: rgba(255,255,255,0.5); margin-bottom: 1.2rem;
  font-size: 0.85rem; letter-spacing: 0.5px;
}
.password-input-row { display: flex; gap: 0.6rem; justify-content: center; }
.section-password-input {
  padding: 0.6rem 1.2rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 0.85rem; outline: none; width: 170px;
  transition: border-color 0.2s;
}
.section-password-input:focus { border-color: var(--accent-blue); }
.section-unlock-btn {
  padding: 0.6rem 1.5rem; border-radius: var(--radius-full);
  border: none; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff; transition: all 0.2s; letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(240,147,251,0.25);
  white-space: nowrap;
}
.section-unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(240,147,251,0.35); }
.section-unlock-btn:active { transform: scale(0.97); }
.password-error { color: #f5576c; font-size: 0.8rem; margin-top: 0.8rem; }

/* video viewer modal */
.video-viewer {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.video-viewer.show { display: flex; opacity: 1; }
.viewer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
}
.viewer-content {
  position: relative; width: 90vw; max-width: 1100px;
  max-height: 90vh; z-index: 1;
  transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.video-viewer.show .viewer-content { transform: scale(1); }
.viewer-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.viewer-close:hover { background: rgba(245,87,108,0.3); color: #fff; border-color: rgba(245,87,108,0.3); }
.viewer-close svg { width: 18px; height: 18px; }
.viewer-video-wrap {
  width: 100%; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #000;
}
.viewer-video-wrap video { width: 100%; display: block; max-height: 85vh; }

/* player toggle - moved to top right */
#playerToggle {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 15;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, rgba(240,147,251,0.2), rgba(79,172,254,0.2));
  backdrop-filter: blur(12px); color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
#playerToggle:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(240,147,251,0.25); background: linear-gradient(135deg, rgba(240,147,251,0.3), rgba(79,172,254,0.3)); }
#playerToggle:active { transform: scale(0.95); }
#playerToggle svg { width: 20px; height: 20px; transition: all var(--transition); }
#playerToggle .pause-icon { display: none; }
#playerToggle.playing .play-icon { display: none; }
#playerToggle.playing .pause-icon { display: block; }
#playerToggle::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-green)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring-spin 4s linear infinite;
  opacity: 0; transition: opacity var(--transition);
}
#playerToggle.playing::after { opacity: 1; }

/* responsive */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 900px) {
  .main-stage { padding: 1.5rem; }
  .contact-wall { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .sidebar-overlay { display: block; }

  .side-panel {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 220px; min-width: unset;
    transform: translateX(-100%);
    border-right: 1px solid var(--border-light);
    z-index: 9;
  }
  .side-panel.open { transform: translateX(0); }

  .panel-header { padding-top: 3rem; }

  .page-nav {
    flex-direction: column; padding: 0.5rem 0.6rem;
    gap: 0.2rem; overflow-x: visible;
  }
  .nav-entry { padding: 0.7rem 0.9rem; font-size: 0.85rem; white-space: normal; flex-shrink: 0; width: 100%; }
  .nav-entry span { display: inline; }
  .nav-entry svg { width: 18px; height: 18px; }
  .nav-entry.active::before { display: block; }

  .panel-footer { display: flex; }

  .main-stage { padding: 1.2rem 1rem; padding-top: 4rem; }
  .user-name { font-size: 2rem; }
  .avatar-frame { width: 100px; height: 100px; }
  .avatar-aura { width: 140px; height: 140px; }
  .music-viz { width: 220px; height: 44px; }

  .contact-wall { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .stage.stage-video { padding: 1.2rem 1rem; padding-top: 4rem; }
  .password-input-row { flex-direction: column; align-items: center; gap: 0.6rem; }
  .section-password-input { width: 100%; max-width: 300px; padding: 0.75rem 1rem; font-size: 16px; }
  .section-unlock-btn { width: 100%; max-width: 300px; padding: 0.75rem 1rem; font-size: 0.95rem; }
  .password-prompt { padding: 1.5rem; }

  #playerToggle { top: 1rem; right: 1rem; width: 40px; height: 40px; }
  #playerToggle svg { width: 18px; height: 18px; }
}
