:root {
  --bg-base: #0a0a0b;
  --text-primary: #ffffff;
  --text-secondary: #8a8a93;
  --accent: #ffffff;
  --card-bg: rgba(24, 24, 27, 0.4);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.15);
  --font-main: "Inter", sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.66' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2b2b31, #121214);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: -2px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.user-meta h1 {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.user-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
}
.user-meta .bio {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 6px;
  font-style: italic;
}

.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--card-border);
  position: relative;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0 0 16px 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}
.tab-btn:hover,
.tab-btn.active {
  color: var(--text-primary);
}
.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}

.span-1-col {
  grid-column: span 1;
}
.span-2-col {
  grid-column: span 2;
}
.span-3-col {
  grid-column: span 3;
}
.span-4-col {
  grid-column: span 4;
}
.span-2-row {
  grid-row: span 2;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform;
}
.bento-card.no-hover {
  cursor: default;
}
.bento-card.no-padding {
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}
.bento-card:not(.no-hover):hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.035),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.bento-card:hover::before {
  opacity: 1;
}

.card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-box {
  width: 100%;
  flex: 1 1 0;
  min-height: 0; 
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.image-box img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.bento-card:hover .image-box img {
  transform: scale(1.05);
}

.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
  text-transform: uppercase;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bg-image-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.volume-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.volume-control:hover {
  background: rgba(30, 30, 35, 1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.volume-control svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.music-bars {
  display: flex;
  gap: 3px;
  height: 20px;
  align-items: flex-end;
}
.music-bars div {
  width: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: height 0.1s;
  animation: pulse 1.2s infinite ease-in-out alternate;
}
body:not(.audio-playing) .music-bars div {
  animation: none !important;
  height: 3px !important;
  opacity: 0.5;
}
@keyframes pulse {
  0% {
    height: 4px;
  }
  100% {
    height: 20px;
  }
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}

@media (max-width: 768px) {
    .container { 
        padding: 40px 16px; 
        gap: 32px; 
    }
    
    .avatar {
        width: 72px; height: 72px; font-size: 26px;
    }
    .user-meta h1 { font-size: 28px; }

    .tabs { 
        overflow-x: auto; white-space: nowrap; padding-bottom: 2px; gap: 24px;
        -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
        mask-image: linear-gradient(to right, #000 80%, transparent 100%);
        scrollbar-width: none; 
    }
    .tabs::-webkit-scrollbar { display: none; }

    .bento-grid { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(130px, auto); 
        gap: 12px;
    }

    .span-4-col { grid-column: span 2; } 
    .span-3-col { grid-column: span 2; }
    .span-2-col { grid-column: span 2; } 
    
    .bento-card { padding: 20px; border-radius: 20px;}

    .card-title { font-size: 18px; }
    .card-desc { font-size: 12px; }
    .tag { font-size: 10px; padding: 4px 8px; }

    .span-2-row { height: auto; min-height: 320px; }
    .image-box { min-height: 180px; max-height: 200px; margin-bottom: 12px;}
    
    .bento-card[style*="row"] .card-inner { flex-direction: column !important; align-items: flex-start !important;}
    .card-text-block { width: 100%; text-align: left;}

    .volume-control { 
        bottom: 20px; right: 20px; 
        width: 42px; height: 42px;
    }
    .volume-control svg { width: 16px; height: 16px; }

    iframe { height: 260px; }
}