/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0a0a0a !important;
  color: #fafafa;
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
  position: relative;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-shadow: #000000;
}

.card {
  background: linear-gradient(45deg, var(--color) 0%, rgba(0, 0, 0, 0) 60%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem !important;
  padding: 1rem !important;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3);
  transform: scale(1.01);
}

.visits-pill {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  z-index: 10;
}

.visits-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.visits-count {
  font-variant-numeric: tabular-nums;
}


.card-main {
  padding: 0;
}

.main-section {
  padding: 1.5rem 2rem;
}


.section-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.spotify-header .spotify-header-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.section-title-line {
  flex: 1;
  min-width: 0.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  align-self: center;
}

.spotify-live-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1db954;
  padding: 0.25rem 0.6rem;
  background: rgba(29, 185, 84, 0.15);
  border-radius: 9999px;
}

.main-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}


.profile-avatar-wrap {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.profile-name {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.profile-username {
  font-size: 0.95rem;
  font-weight: 400;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}

.main-socials {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.main-socials .section-title-row {
  margin-bottom: 1rem;
}

.socials-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem !important;
  height: 1.6rem !important;
  border-radius: 100% !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.05);
}

.social-link svg {
  flex-shrink: 0;
}

.main-music {
  padding-top: 1rem;
  padding-bottom: 1.75rem;
}

.main-music .spotify-header {
  margin-bottom: 1.25rem;
}

.spotify-live-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1db954;
  padding: 0.2rem 0.5rem;
  background: rgba(29, 185, 84, 0.12);
  border-radius: 9999px;
}

.spotify-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.spotify-cover-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.spotify-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  overflow: hidden;
}

.spotify-cover {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}

.spotify-info {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}


.spotify-track {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.spotify-track:hover {
  transform: scale(1.07)
}

.spotify-artist {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-wrap {
  margin-bottom: 0.5rem;
}

.spotify-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.spotify-progress-fill {
  height: 100%;
  width: 0%;
  background: #1db954;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.spotify-timestamps {
  display: flex;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.spotify-via {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1db954;
  margin: 0;
}

.spotify-empty {
  padding: 0.5rem 0;
  text-align: left;
}

.roblox-offline-text,
.spotify-empty-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.card-roblox {
  background: linear-gradient(45deg, var(--Rcolor) 0%, #00000000 70%);
  padding: 1.75rem 2rem;
}

.roblox-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.roblox-icon-wrap {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.roblox-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.roblox-game {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.roblox-online {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.roblox-online .roblox-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.roblox-online.offline .roblox-dot {
  background: rgba(255, 255, 255, 0.3);
}

.roblox-join {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.roblox-join:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.roblox-join svg {
  flex-shrink: 0;
}

.roblox-offline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.roblox-offline .roblox-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
}

.roblox-offline-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}