* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'STIX Two Text', serif; background-color: #121212;
       color: #f5f5f7; min-height: 100vh; display: flex; flex-direction: column;
       justify-content: center; align-items: center; text-transform: lowercase;
       -webkit-font-smoothing: antialiased; padding: 2rem 1rem;
     }

.post-it-wrapper { position: relative; width: 100%; max-width: 550px; }

.site-wrapper { width: 100%; padding: 2.5rem 2rem; background: #181818;
                border: 1px solid rgba(255, 255, 255, 0.05);
                border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
                display: flex; flex-direction: column; gap: 2rem;
              }

.player-container { padding-bottom: 1.5rem;
                    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
                  }

.profile-title { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }

.currently-playing { font-size: 0.9rem; opacity: 0.6; font-style: italic;
                     margin-top: 0.3rem;
                   }

.stats-display { margin-top: 0.5rem; font-size: 0.85rem;
                 background: rgba(255, 255, 255, 0.08); padding: 0.2rem 0.6rem;
                 border-radius: 4px; display: inline-block;
               }

.app-form { display: flex; flex-direction: column; gap: 1.2rem; }

.input-group { display: flex; gap: 0.5rem; width: 100%; }

input[type="text"], select { background: #222 !important;
                             border: 1px solid rgba(255, 255, 255, 0.1);
                             border-radius: 6px; color: #f5f5f7; height: 42px;
                             padding: 0 1rem; font-family: inherit; font-size: 0.95rem;
                           }

input[type="text"] { flex-grow: 1; }

button { background: #f5f5f7; color: #121212; border: none; border-radius: 6px;
         padding: 0 1.5rem; font-family: inherit; font-weight: 600; cursor: pointer;
         transition: all 0.2s ease; text-transform: lowercase;
       }

button:hover { background: #ffffff; transform: translateY(-1px); }

#reset-btn { background: transparent; color: #f5f5f7;
             border: 1px solid rgba(255, 255, 255, 0.2);
           }
#reset-btn:hover { background: rgba(255, 255, 255, 0.05); }

@media (max-width: 640px) {
  .input-group { flex-wrap: wrap; gap: 0.75rem; }
  .input-group input[type="text"] { width: 100%; flex-basis: 100%; }
  .input-group button { flex: 1; height: 42px; padding: 0; text-align: center; }
}

.filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

#filter-artist { grid-column: 1 / -1; }

@media (max-width: 480px) {
  .filters-grid { grid-template-columns: 1fr; }
  #filter-artist { grid-column: auto; }
}

.output-container { display: flex; flex-direction: column;
                    align-items: center; width: 100%;
                  }

.canvas-wrapper { width: 100%; max-width: 100%; margin-top: 1rem; }

canvas { width: 100%; height: auto; display: none; border-radius: 8px; cursor: pointer;
         box-shadow: 0 4px 20px rgba(0,0,0,0.3); background: #000;
       }

.spinner { font-size: 0.85rem; opacity: 0.7; font-style: italic; margin: 1rem 0; }


.legal-footer { width: 100%; max-width: 550px; margin: 2rem auto 0; display: flex;
                justify-content: center; align-items: center; gap: 1.5rem;
                font-size: 0.8rem; opacity: 0.8; padding: 0 0.5rem; color: #f5f5f7;
              }

.legal-footer a { color: #ffffff !important; text-decoration: underline; }

.footer-tip { color: #ffb7b2 !important; font-weight: bold; }

.lang-dropdown-container { position: relative; display: inline-block; }

.footer-lang { cursor: pointer; text-decoration: underline; text-transform: lowercase;
               display: inline-flex; align-items: center; gap: 4px;
             }

.footer-lang::after { content: '↓'; font-size: 0.7rem; transition: transform 0.2s ease;
                      display: inline-block;
                    }

.lang-dropdown-container.open .footer-lang::after { content: '↑'; }

.lang-menu { position: absolute; bottom: 100%; right: 0; background: #181818;
             border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px;
             padding: 0.25rem 0; margin-bottom: 5px;
             box-shadow: 0 -4px 12px rgba(0,0,0,0.5); z-index: 100; min-width: 90px;
           }

.lang-menu div { padding: 0.3rem 0.6rem; cursor: pointer; text-align: center;
                 transition: background 0.2s ease;
               }

.lang-menu div:hover { background: rgba(255, 255, 255, 0.08); }