body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  background: url('img/bg.jpg') center/cover fixed;
  color: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
}
.sidebar {
  width: 140px;
  background: #B3E6B5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 0 0 0;
  border-right: 3px solid #68c96b;
  position: relative;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  margin-left: 16px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}
.sidebar-menu button {
  width: 90%;
  margin-left: 5%;
  padding: 10px 0;
  background: #d3d3d3;
  border: 2px solid #68c96b;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #333333;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu button:hover {
  background: #e8e8e8;
  color: #2c2c2c;
}
.sidebar-bottom {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.sidebar-bottom-lines {
  width: 60%;
  height: 24px;
  border-top: 2px solid #B3E6B5;
  border-bottom: 2px solid #B3E6B5;
  margin: 0 auto;
}
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: none;
  min-width: 0;
}
.header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px 32px 0 0;
  font-size: 1.3rem;
  font-weight: bold;
}
.header span {
  text-align: right;
  line-height: 1.2;
}
.main-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #bbb;
  user-select: none;
}
.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  background: #B3E6B5;
  border-top: 3px solid #68c96b;
  padding: 0 0 0 140px;
  min-height: 80px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.footer-menu {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
}
.footer-menu .footer-item {
  background: #d3d3d3;
  border: 2px solid #68c96b;
  border-radius: 10px;
  padding: 16px 24px;
  margin: 8px;
  font-size: 1.1rem;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #333333;
  min-width: 120px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.footer-menu .footer-item:hover {
  background: #e8e8e8;
  color: #2c2c2c;
}
.footer .footer-pompompurin {
  position: absolute;
  left: 25px;
  bottom: 100%;
  transform: translateY(10%);
  height: 100px;
  width: auto;
  pointer-events: none;
  z-index: 1;
}
.footer .footer-doodle {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 2rem;
  pointer-events: none;
}

/* ========================================= */
/* LOGO STYLES - FORCE CIRCULAR SHAPE */
/* ========================================= */

/* Desktop logo - force circular */
.logo-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
  transform: scale(1.18);
  border: 2px solid #68c96b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden !important;
  min-width: 60px !important;
  min-height: 60px !important;
}

/* ========================================= */
/* MOBILE RESPONSIVE STYLES (max-width: 700px) */
/* ========================================= */

@media (max-width: 700px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }
  
  .container {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .main-content {
    flex-direction: row;
    width: 100%;
  }
  
  .sidebar {
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    padding: 12px 0 0 0;
  }
  
  .logo {
    margin-bottom: 16px;
    margin-left: 12px;
  }
  
  /* Mobile logo - force circular and smaller */
  .logo-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    transform: scale(1) !important;
    min-width: 40px !important;
    min-height: 40px !important;
    overflow: hidden !important;
  }
  
  .sidebar-menu {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .sidebar-menu button {
    width: 90%;
    margin-left: 5%;
    padding: 8px 4px;
    font-size: 0.7rem;
    min-height: 36px;
  }
  
  .content-area {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 60px);
  }
  
  .header {
    padding: 16px 12px 0 0;
    font-size: 1rem;
  }
  
  .main-area {
    font-size: 1.3rem;
  }
  
  .footer {
    width: 100vw;
    padding: 0;
    min-height: auto;
    left: 0;
    right: 0;
    padding-left: 60px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }
  
  .footer-menu {
    flex-wrap: nowrap !important;
    gap: 3px;
    padding: 8px 4px;
    width: 100%;
    justify-content: space-evenly;
  }
  
  .footer-menu .footer-item {
    padding: 6px 3px;
    margin: 0;
    font-size: 0.55rem;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    border-width: 1px;
  }
  
  .footer .footer-pompompurin {
    left: 4px;
    height: 40px;
    bottom: 100%;
    transform: translateY(10%);
  }
  
  .footer .footer-doodle {
    right: 4px;
    bottom: 4px;
    font-size: 1.2rem;
  }

  /* CUSTOM POPUP MOBILE STYLES */
  .custom-popup-overlay {
    padding: 10px;
  }

  .custom-popup {
    padding: 20px 15px;
    font-size: 1.1rem;
    min-width: 90vw;
    max-width: 95vw;
    width: auto;
    border-radius: 12px;
  }

  .custom-popup .close-btn {
    font-size: 1.8rem;
    top: 5px;
    right: 5px;
  }

  /* FOOTER POPUP MOBILE STYLES */
  .my-art-popup-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
  }

  .my-art-popup {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 95vw !important;
    min-width: 0 !important;
    max-width: 95vw !important;
    min-height: 60vh !important;
    max-height: 85vh !important;
    border-radius: 18px !important;
    padding: 20px 15px !important;
    box-sizing: border-box;
  }

  .my-art-popup h2 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }

  .my-art-popup .close-btn {
    font-size: 2rem;
    top: 8px;
    right: 8px;
  }

  .my-art-popup .popup-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 5px;
    box-sizing: border-box;
  }

  /* INFO BOXES MOBILE */
  .my-art-popup .popup-content > div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .my-art-popup .info-box {
    max-width: 100% !important;
  }

  /* SONG GRID MOBILE */
  .my-art-popup .popup-content > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .my-art-popup .song-box {
    min-height: auto !important;
    max-width: 100% !important;
  }

  .my-art-popup .song-image-container img {
    height: 140px !important;
    max-width: 100%;
  }

  .my-art-popup .song-name {
    font-size: 0.85rem;
  }

  .my-art-popup .song-artist {
    font-size: 0.75rem;
  }

  /* DISCORD WIDGET MOBILE */
  .currently-widget {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    margin: 0 10px;
    width: calc(100vw - 20px) !important;
    box-sizing: border-box;
  }

  .currently-widget h3 {
    font-size: 1.2rem;
    padding-bottom: 8px;
  }

  .userinfo {
    grid-template-columns: 48px 1fr !important;
    gap: 4px 12px !important;
    padding: 12px !important;
  }

  .avatar-wrapper {
    width: 48px !important;
    height: 48px !important;
  }

  .userinfo .avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .status-indicator {
    width: 12px !important;
    height: 12px !important;
    bottom: -1px !important;
    right: -1px !important;
  }

  .userinfo .display-name {
    font-size: 1rem !important;
  }

  .userinfo .username {
    font-size: 0.8rem !important;
  }

  .userinfo .custom-status {
    font-size: 0.8rem !important;
  }

  .activity {
    grid-template-columns: 48px 1fr !important;
    gap: 2px 12px !important;
    padding: 10px !important;
  }

  .largeimage, .activity-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .smallimage {
    width: 20px !important;
    height: 20px !important;
    bottom: -4px !important;
    right: -4px !important;
  }

  .act-name {
    font-size: 0.9rem !important;
  }

  .act-details {
    font-size: 0.8rem !important;
  }

  .act-state {
    font-size: 0.75rem !important;
  }

  /* INFO BOX MOBILE */
  .info-box {
    min-height: auto !important;
    max-width: 100% !important;
  }

  .info-box-header {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .info-box-content {
    font-size: 0.8rem;
    padding: 12px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* ========================================= */
/* POP-UP BASE STYLES (Desktop) */
/* ========================================= */

.custom-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-popup {
  background: #fffbe7;
  border: 4px solid #68c96b;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 40px 60px;
  text-align: center;
  font-size: 2rem;
  color: #a14e9c;
  position: relative;
  min-width: 220px;
  min-height: 100px;
  animation: popIn 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.custom-popup .close-btn {
  position: absolute;
  top: 10px;
  right: 8px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #a14e9c;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.custom-popup .close-btn:hover {
  color: #e04e4e;
}

.my-art-popup-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1200;
  pointer-events: auto;
}

.my-art-popup {
  position: fixed;
  top: 0;
  left: 140px;
  right: 0;
  bottom: 80px;
  background: #fffbe7;
  border: 4px solid #68c96b;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 40px 50px 40px 60px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s;
  overflow-y: auto;
}

.my-art-popup h2 {
  margin:0 0 24px 0;
  color:#333;
  font-family:'Comic Sans MS','Comic Sans',cursive,sans-serif;
  width:100%;
}

.my-art-popup .close-btn {
  position: absolute;
  top: 12px;
  right: 8px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #a14e9c;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.my-art-popup .close-btn:hover {
  color: #e04e4e;
}

.my-art-popup .popup-content {
  width: 100%;
  flex: 1;
  overflow-y: auto;
}

.my-art-popup .popup-content > div:last-child img[src*="rain.gif"] {
  max-height: calc(100vh - 400px);
  width: 100%;
  max-width: 800px;
  object-fit: contain;
}

.info-box {
  background: #fff;
  border: 2px solid #68c96b;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.info-box-header {
  background: #B3E6B5;
  padding: 12px 16px;
  font-weight: bold;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #333;
  border-bottom: 2px solid #68c96b;
  border-radius: 10px 10px 0 0;
}

.info-box-content {
  padding: 16px;
  flex: 1;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #333;
}

.song-box {
  background: #fff;
  border: 2px solid #68c96b;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.song-image-container {
  width: 100%;
  margin-bottom: 12px;
}

.song-info {
  padding: 8px 0;
  text-align: center;
}

.song-name {
  font-weight: bold;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #333;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.song-artist {
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  color: #666;
  font-size: 0.85rem;
}

a .song-box {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

a:hover .song-box {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.social-icon svg,
.social-icon img {
  width: 36px;
  height: 36px;
}

.social-icon img {
  object-fit: contain;
  display: block;
}

.social-icon:hover {
  transform: scale(1.08);
}

@media (max-width: 700px) {
  .social-icons {
    gap: 8px;
    flex-wrap: wrap;
  }
  .social-icon svg,
  .social-icon img {
    width: 28px;
    height: 28px;
  }
}

/* Discord Status Widget - Avatar status indicator layout */

.currently-widget {
  background: #ffffff;
  border: 4px solid #68c96b;
  border-radius: 18px;
  padding: 24px;
  color: #333;
  max-width: 420px;
  min-width: 340px;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  box-shadow: 0 8px 32px rgba(104, 201, 107, 0.2);
}

.currently-widget h3 {
  margin: 0 0 20px 0;
  color: #68c96b;
  font-size: 1.4rem;
  text-align: left;
  border-bottom: 2px dashed #68c96b;
  padding-bottom: 12px;
  font-weight: bold;
}

/* Main Widget Container */
.discord-widget {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #333;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
}

/* User Info Section - Grid Layout */
.userinfo {
  background-image: linear-gradient(
          rgba(104, 201, 107, 0.1),
          rgba(104, 201, 107, 0.1)
      ),
      var(--backdrop-url, none);
  background-size: cover;
  background-position: 50% 50%;
  border: 3px solid #68c96b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 16px;
  align-items: center;
  grid-template-areas:
      "avatar display"
      "avatar username"
      "avatar status";
}

/* Avatar Wrapper with Status Indicator */
.avatar-wrapper {
  grid-area: avatar;
  position: relative;
  width: 64px;
  height: 64px;
}

.userinfo .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #68c96b;
  background: #fff;
}

/* Status Indicator on Avatar - No pulsing */
.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #68c96b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #68c96b;
  z-index: 1;
}

.status-indicator.online { 
  background: #68c96b; 
  box-shadow: 0 0 0 2px #68c96b;
}
.status-indicator.idle { 
  background: #faa61a; 
  box-shadow: 0 0 0 2px #faa61a;
}
.status-indicator.dnd { 
  background: #f04747; 
  box-shadow: 0 0 0 2px #f04747;
}
.status-indicator.offline { 
  background: #747f8d; 
  box-shadow: 0 0 0 2px #747f8d;
}

.userinfo .display-name {
  grid-area: display;
  color: #68c96b;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: color 0.2s;
}

.userinfo .display-name:hover {
  color: #4a8f4d;
  text-decoration: underline;
}

.userinfo .username {
  grid-area: username;
  color: #777;
  font-size: 0.9rem;
}

/* Custom Status in Userinfo */
.userinfo .custom-status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.status-emoji {
  width: 20px;
  height: 20px;
}

.status-message {
  color: #555;
  font-style: italic;
}

/* Activities Container */
.activities {
  display: grid;
  gap: 16px;
}

/* Activity Cards */
.activity {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: min-content min-content min-content;
  gap: 4px 16px;
  align-items: center;
  grid-template-areas: 
      "images name"
      "images details"
      "images state";
  background: #fff;
  border: 2px solid #68c96b;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s;
}

.activity:hover {
  background: #f0f8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(104, 201, 107, 0.2);
}

.activity.spotify {
  background: #e8f5e9;
  border: 2px solid #1db954;
}

.activity.spotify:hover {
  background: #c8e6c9;
}

/* Spotify Link */
.spotify-link {
  grid-column: 2;
  grid-row: 1 / 4;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotify-link:hover .act-name {
  color: #1db954;
  text-decoration: underline;
}

/* Activity Images */
.act-images {
  position: relative;
  grid-area: images;
}

.largeimage {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #68c96b;
  background: #f5f5f5;
}

.smallimage {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
}

.activity-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #f5f5f5;
  border: 2px solid #68c96b;
  border-radius: 12px;
}

/* Activity Text */
.act-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  grid-area: name;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
}

.act-details {
  font-size: 13px;
  color: #555;
  grid-area: details;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-state {
  font-size: 12px;
  color: #777;
  grid-area: state;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading State */
.discord-widget:empty::before {
  content: 'Loading Discord status...';
  display: block;
  text-align: center;
  padding: 40px;
  color: #68c96b;
  font-size: 14px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 700px) {
  .currently-widget {
      max-width: 100%;
      min-width: 0;
      padding: 16px;
      margin: 0 10px;
  }
  
  .userinfo {
      grid-template-columns: 48px 1fr;
      gap: 4px 12px;
      padding: 12px;
  }
  
  .avatar-wrapper {
      width: 48px;
      height: 48px;
  }
  
  .userinfo .avatar {
      width: 48px;
      height: 48px;
  }
  
  .status-indicator {
      width: 12px;
      height: 12px;
      bottom: -1px;
      right: -1px;
  }
  
  .activity {
      grid-template-columns: 48px 1fr;
      gap: 2px 12px;
      padding: 10px;
  }
  
  .largeimage, .activity-icon {
      width: 48px;
      height: 48px;
  }
  
  .smallimage {
      width: 20px;
      height: 20px;
      bottom: -4px;
      right: -4px;
  }
}