body {
    background: linear-gradient(180deg, #e8ffe8 0%, #c9f7c9 100%);
    color: #111;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    margin-top: 40px;
    font-size: 32px;
    color: #2d7a2d;
    position: relative;
    display: inline-block;
}
h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #57a957;
    margin: 8px auto 0;
    border-radius: 3px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-title {
    font-weight: bold;
    margin-bottom: 8px;
    word-break: break-word;
}

.card-desc {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
    color: #333;
}

.card-size {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.download-button {
    display: inline-block;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    border-radius: 6px;
    background-color: #269CE9;
    transition: all 0.2s ease;
}
.download-button:hover {
    background-color: #1c88d2;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.button.blue  { background-color: #269CE9; }
.button.blue:hover { background-color: #1c88d2; }

.button.green { background-color: #57a957; }
.button.green:hover { background-color: #4c934c; }

.button.red   { background-color: #ca3535; }
.button.red:hover { background-color: #b32e2e; }

.button.yellow { border: 1px solid #FFFF17; background-color: #FFFF17; color: #FF9000; }
.button.yellow:hover { background-color: #FFFFA8; }

.button.orange { border: 1px solid #FF8000; background-color: #FF8000; color: #fff; }
.button.orange:hover { background-color: #FFC68C; }

.button.purple { border: 1px solid #F507E3; background-color: #F507E3; color: #fff; }
.button.purple:hover { background-color: #FF80FF; }

.footer {
    text-align: center;
    margin: 60px 0 20px;
    margin-top: auto;
    font-size: 14px;
    color: #333;
}

#mp3Search {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    font-size: 16px;
}

#searchResults {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    width: 90%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
}

#searchResults li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
#searchResults li:last-child {
    border-bottom: none;
}

#searchResults li a {
    font-weight: bold;
    color: #269CE9;
    text-decoration: none;
}
#searchResults li a:hover {
    text-decoration: underline;
}

#searchResults li div {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

@media (max-width: 700px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 90%;
        max-width: 350px;
        font-size: 17px;
        padding: 14px 0;
    }

    h1 {
        font-size: 26px;
        margin-top: 25px;
    }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > *:not(.footer) {
  flex-shrink: 0;
}

.footer {
  margin-top: auto;
}

.compact-block {
  margin: 40px auto 0 auto;           /* Centraal op pagina */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #a0ffa0;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  text-align: center;
  width: auto;
  max-width: 450px;                   /* Niet groter dan nodig */
}

.play-button {
  margin-top: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #57a957;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.play-button:hover {
  background: #4c934c;
}
  
@media (max-width: 500px) {
  .compact-block {
    width: 90%;
    max-width: 90%;
  }
}