/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    background: #000; /* dark background */
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main card container */
.card {
    width: 90%;
    max-width: 480px;
    text-align: center;

    display: flex;
    flex-direction: column; /* Stack content vertically */
    min-height: 90vh; /* Ensure it fills the full height */
    padding: 20px 0;
}

/* Profile image and name */
.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile h1 {
    margin: 0 0 1px;
    font-size: 1.7em;
    font-weight: 700;
}
/* "Now" section displaying current status */
.now-playing-wrapper {
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 20px;
  height: 20px;
}

.now-playing-text {
  font-size: 0.85rem;
  color: #aaa;
  display: inline-block;
  animation: scrollText 10s linear infinite;
  animation-delay: 2s;
}


/* Social icon buttons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.social-icons a {
    display: inline-flex;
    border-radius: 50;
    background: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: visible;
    position: relative;
}

.social-icons img {
    width: auto;
    height: 28px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    transition: transform 0.2s ease;
}

.social-icons a:hover img {
    transform: scale(1.1);
}












/* Spotify */
.spotify-card {
  background: #1e1e1e;
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.spotify-logo {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.spotify-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0rem;
  object-fit: cover;

  /* Fix washed-out look on iOS */
  filter: contrast(1.2) brightness(1.1);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.spotify-info img {
  border-radius: 8px;
  width: 104px;
  height: 104px;
  object-fit: cover;

  /* Fix washed-out look on iOS */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.device-oled .spotify-info img {
  filter: contrast(1.2) brightness(1.1);
}

.device-lcd .spotify-info img {
  filter: contrast(1) brightness(0.90);
}

.spotify-text {
  display: flex;
  flex-direction: column;
  justify-content: center;     /* Center vertically with album art */
  min-width: 150px;            /* Prevent short names from collapsing */
}
.spotify-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.spotify-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

#song-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;            /* You can tweak this if needed */
}

#artist-name {
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
  color: #bbb;
}
.progress-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.bar {
  flex: 1;
  height: 6px;
  background: #444;
  border-radius: 3px;
  position: relative;
}

.fill {
  height: 100%;
  background: #1db954;
  border-radius: 3px;
  width: 0%;
}

.hidden {
  display: none;
}














/* Links list */
.links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links li + li {
    margin-top: 15px;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.links a:hover {
    background: #383838;
    transform: scale(1.03);
}

.links .icon {
    margin-right: 10px;
}

.links .icon img {
    width: 24px;
    height: 24px;
}

.links .actions img {
    width: 20px;
    height: 20px;
}

.links .label {
    flex: 1;
    text-align: left;
}

/* Call to action section */
.cta {
    margin-top: auto;
    padding-top: 20px;
}

.support {
    display: inline-block;
    padding: 12px 24px;
    background: #444;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.support:hover {
    background: #555;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.8em;
    color: #aaa;
}

.footer-links a {
    color: #999;
    margin: 0 5px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
