body {
    background-image: url("wallpaper.png");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    font-family: 'Archivo Black', sans-serif;
}
.archivo-black-regular {
  font-family: 'Archivo Black', sans-serif;
  font-style: normal;
}
ol {
    text-align: left;
    display: inline-block;
}
.card {
    background: rgba(223, 222, 222, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    width: 500px;
    margin: 100px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: floatIn .6s ease-out;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}
@keyframes floatIn {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
a {
    text-decoration: none;
}
.NL {
    color: #679ff3;
}
.FA {
    color: #f35a5a;
}
a {
    background: rgba(54, 54, 54, 0.3);
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: pink;
}
p {
    line-height: 1.5;
    margin: 50px 0;
}

a:hover {
    opacity: 0.5;
}
.GS {
    color: #2fbd71;
}
a {
    text-shadow:none;
}
.avatar {
    position: absolute;
    top: -6px;
    left: -120px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.avatar {
    transition: 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
}
html, body {
  height: 100%;
  margin: 0;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
body::before {
    content:"";
    position:fixed;
    inset:0;
    background: rgba(0, 0, 0, 0.35);
    z-index:-1;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 600px){
  .card{ width: 90%; padding: 24px 18px; }
  .title{ font-size: 32px; }
  .avatar{ width: 96px; height: 96px; left: 12px; top: -48px; }
  .btn{ width: 90%; }
}
ol{
  display:inline-block;
  text-align:left;
  margin: 10px auto;
  padding-left: 1.2em;
}
.btn{
  display:block;
  width: 260px;
  margin: 12px auto;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration:none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  transition: .25s;
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}
.btn.gs{ box-shadow: inset 4px 0 0 rgba(0,255,120,0.9); }
.btn.nl{ box-shadow: inset 4px 0 0 rgba(80,160,255,0.9); }
.btn.fa{ box-shadow: inset 4px 0 0 rgba(255,80,80,0.9); }
/* --- Expand Menu (fixed) --- */

.menu{
  width: 260px;
  margin: 18px auto;
}
.main-btn{
  display: block;
  width: 220px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  backdrop-filter: blur(10px);
  transition: .25s;
  margin: 0 auto 20px auto;
}

.menu:hover .main-btn{
  background: rgba(255,255,255,0.18);
}
.sub-btns{
  display: flex;
  flex-direction: column;
  gap: 10px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
  margin-top: 12px;
}

.menu:hover .sub-btns{
  max-height: 260px;
  opacity: 1;
}

.sub-btn{
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;

  backdrop-filter: blur(10px);
  transition: .25s;
}

.sub-btn.gs{ box-shadow: inset 4px 0 0 rgba(0,255,120,0.9); }
.sub-btn.nl{ box-shadow: inset 4px 0 0 rgba(80,160,255,0.9); }
.sub-btn.fa{ box-shadow: inset 4px 0 0 rgba(255,80,80,0.9); }

.sub-btn:hover{
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.main-btn:hover{
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
p {
    margin: 50px 0;
}
body {
    min-height: 150vh;
}
.green {
    color: #2fbd71;
}
.blue {
    color: #679ff3;
}
.red {
    color: #f35a5a;
}
.brand-list{
  display: inline-block;
  text-align: left;
  padding-left: 1.2em;
}

.brand-list li{
  margin: 6px 0;
  white-space: nowrap;
}
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.music-btn{
  margin-top: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: .3s;
}

.music-btn:hover{
  background: rgba(255,255,255,0.2);
}
.music-btn {
  margin-top: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* footer 固定在最底 */
.footer{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  z-index: 10;
}
.subtitle-box{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
  z-index: 10;

  display: inline-block;      
  width: fit-content;         
  max-width: min(720px, 92vw);

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);

  color: white;
  font-size: 16px;
  text-align: center;

  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.subtitle-box.hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.subtitle-box{
  transition: opacity .25s ease, transform .25s ease;
}
.music-btn {
  position: relative;
  height: 40px;
  min-width: 120px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.1s ease-in-out, background-color 0.3s ease;
}
.music-btn .label{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .25s ease, transform .25s ease;
}

.music-btn.is-off .label-off{ opacity: 1; transform: translateY(0); }
.music-btn.is-off .label-on { opacity: 0; transform: translateY(-6px); }
.music-btn.is-on .label-on { opacity: 1; transform: translateY(0); }
.music-btn.is-on .label-off{ opacity: 0; transform: translateY(6px); }
.music-btn.is-on{
  background: rgba(120,255,180,0.18);
  border-color: rgba(120,255,180,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.music-btn.is-off{
  background: rgba(255,255,255,0.10);
}
.music-btn:hover{
  transform: translateY(-2px);
}
#subtitleText{
  display: inline-block;
  transition: opacity .2s ease, transform .2s ease;
}

#subtitleText.fading{
  opacity: 0;
  transform: translateY(4px);
}
.music-btn:active {
  transform: scale(0.95);
  background-color: rgba(255, 255, 255, 0.2);
}
/* ===== Music Controls (Progress + Volume) ===== */
.music-controls{
  width: min(520px, 92vw);
  margin: 12px auto 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.music-controls .row{
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-controls .row + .row{
  margin-top: 10px;
}

.music-controls span{
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  min-width: 44px;
  text-align: center;
  user-select: none;
}

.music-controls input[type="range"]{
  width: 100%;
  accent-color: rgba(140,255,200,0.9);
}

.music-controls #progress{
  flex: 1;
}

.music-controls .volume-row #volume{
  flex: 1;
  max-width: 220px;
}

/* 手機時更舒服 */
@media (max-width: 600px){
  .music-controls{
    width: 92vw;
  }
  .music-controls span{
    min-width: 38px;
  }
  .music-controls .volume-row #volume{
    max-width: 100%;
  }
}

