body { font-family: sans-serif; background-size: 100% 100%; background-position: center center; background-image: url(../img/mp3-bak.jpg); margin: 0; padding: 20px; }
h1 { font-size: 1.2rem; color: #ede8e8; text-align: center; margin-top: 0; }
select { width: 100%; padding: 10px; font-size: 1rem; margin-bottom: 20px; border-radius: 4px; }
.now-playing { background: #e9e9e9; padding: 10px; text-align: center; font-weight: bold; margin-bottom: 15px; border-radius: 4px; word-wrap: break-word; min-height: 24px; }
.progress-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: #666; }
.progress-bar { flex-grow: 1; -webkit-appearance: none; appearance: none; background: #ddd; height: 6px; border-radius: 3px; outline: none; cursor: pointer; }
.progress-bar::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #252626; cursor: pointer; }
.progress-bar::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #252626; cursor: pointer; border: none; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.controls img { width: 40px; height: 40px; cursor: pointer; user-select: none; transition: transform 0.1s; }
.controls img:active { transform: scale(0.9); }
.playlist { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; border: 1px solid #ccc; border-radius: 4px; }
.playlist li { background: rgb(2 2 2 / 50%); color: #ede8e8; padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 0.95rem; }
.playlist li:last-child { border-bottom: none; }
.playlist li:hover { background: #1f1e1e; }
.playlist li.active { background: #212121; color: #ede8e8; font-weight: bold; }
.controls-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 15px; }
.nav-link { color: rgba(2 2 2  / 50%); white-space: nowrap; text-decoration: none; color: #d9dede; font-weight: bold; margin-top: -20px; padding: 8px 12px; border: 1px solid #007bff; border-radius: 5px; }
.nav-link:hover { background: #414242; }
/* タブレット（835px以上） */
@media (min-width: 835px) {
h1 { font-size: 1.6rem; color: #ede8e8; text-align: center; margin-top: 0; }
.container {
 display: block;
 width: 600px;
 margin: 10px auto 0 auto;
 background: rgb(0 0 0 / 80%);
 padding: 10px;
 border-radius: 0px;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.playlist {
 list-style: none;
 padding: 0;
 margin: 0;
 max-height: 280px;
 overflow-y: auto;
 border: 1px solid #ccc;
 border-radius: 4px;
}
}
/* タブレット（441〜834px以内） */
@media (min-width: 441px) and (max-width: 834px) {
h1 { font-size: 1.6rem; color: #ede8e8; text-align: center; margin-top: 0; }
.container {
 max-width: 750px;
 background: rgb(0 0 0 / 80%);
 margin: -20px 4px 0px 4px;
 padding: 10px;
 border-radius: 0px;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.playlist {
 list-style: none;
 padding: 0;
 margin: 0;
 max-height: 680px;
 overflow-y: auto;
 border: 1px solid #ccc;
 border-radius: 4px;
}
}
/* スマホ（391〜440px以内） */
@media (min-width: 391px) and (max-width: 440px) {
h1 { font-size: 1.4rem; color: #ede8e8; text-align: center; margin-top: 0; }
.container {
 max-width: 390px;
 background: rgb(0 0 0 / 80%);
 margin: -20px -10px 0px -10px;
 padding: 10px;
 border-radius: 0px;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.playlist {
 list-style: none;
 padding: 0;
 margin: 0;
 max-height: 440px;
 overflow-y: auto;
 border: 1px solid #ccc;
 border-radius: 4px;
}
}
/* スマホ（390px以下） */
@media (max-width: 390px) {
h1 { font-size: 1.2rem; color: #ede8e8; text-align: center; margin-top: 0; }
.container {
 max-width: 360px;
 background: rgb(0 0 0 / 80%);
 margin: -15px -10px 0px -10px;
 padding: 10px;
 border-radius: 0px;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.playlist {
 list-style: none;
 padding: 0;
 margin: 0;
 max-height: 350px;
 overflow-y: auto;
 border: 1px solid #ccc;
 border-radius: 4px;
}
}
