/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --gold: #c9a84c;
  --gold-light: #f0c060;
  --gold-dark: #a07830;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   VIDEO PAGE  (index.html)
   ========================================= */
.video-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.video-page video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.btn-unmute {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 100px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-unmute:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
}

.btn-skip {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-skip:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.35);
}

.redirect-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeIn 0.5s ease;
}
.redirect-overlay.visible { display: flex; }
.redirect-overlay p {
  color: var(--text-secondary);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.redirect-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================
   PROFILE PAGE  (profile.html)
   ========================================= */
.profile-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.nav-bar .nav-handle {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.nav-bar .nav-handle span { color: var(--gold); }

.profile-header {
  max-width: 935px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.avatar-wrap { flex-shrink: 0; position: relative; }
.avatar-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

.profile-info { flex: 1; min-width: 0; }

.profile-username-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.profile-username {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.profile-name-display {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}
.profile-bio .bio-tag { color: var(--gold); }

.highlights-section {
  max-width: 935px;
  margin: 28px auto 0;
  padding: 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.highlights-scroll {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.highlights-scroll::-webkit-scrollbar { display: none; }

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.highlight-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  transition: transform var(--transition);
}
.highlight-ring:hover { transform: scale(1.05); }
.highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--bg-primary);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.highlight-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.posts-section {
  max-width: 935px;
  margin: 0 auto;
  padding: 24px;
}

.tab-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.tab {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.tab:hover:not(.active) { color: var(--text-secondary); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
}

.post-card {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border-radius: 2px;
}
.post-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  position: relative;
}
.post-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.post-card:hover .post-card-inner { transform: scale(1.05); }
.post-card-icon { display: none; }
.post-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.4;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.post-card-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.post-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  gap: 24px;
  z-index: 3;
}
.post-card:hover .post-card-overlay { opacity: 1; }
.overlay-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.post-card.coming-soon .post-card-inner {
  border: 1px dashed var(--border);
  background-image: none !important;
}
.post-card.coming-soon .post-card-inner::after { display: none; }
.post-card.coming-soon .post-card-icon { display: block; opacity: 0.3; }
.post-card.coming-soon .post-card-label { color: var(--text-muted); text-shadow: none; }
.post-card.coming-soon { display: flex; align-items: center; justify-content: center; }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  animation: slideUp 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-icon { font-size: 40px; margin-bottom: 16px; }
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-cta {
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
  width: 100%;
}
.modal-cta:hover { opacity: 0.9; }

@media (max-width: 640px) {
  .profile-header {
    flex-direction: row;
    gap: 16px;
    padding: 16px 16px 0;
    align-items: flex-start;
  }
  .avatar-ring { width: 86px; height: 86px; }
  .profile-stats { gap: 16px; }
  .profile-username { font-size: 16px; }
  .posts-grid { gap: 2px; }
  .posts-section { padding: 12px; }
  .highlights-section { padding: 0 12px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
