:root {
  --bg: #0f1724;
  --card: #0b122077;
  --muted: #9aa4b2;
  --accent: #5c88ff44;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #0042e9 0%, #00e1ff 60%);
  color: #e6eef8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}


.player {
    width: 980px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    background: linear-gradient( 180deg, rgba(34, 0, 0, 0.116), rgba(255, 255, 255, 0.02) );
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.artwrap {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.art {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  width: 100%;
  text-align: center;
}
.title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.feel {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--glass);
  border-radius: 10px;
  min-height: 48px;
}

.errorMessage {
    display: flex;
    color: red;
    width: 100%;
    text-align: center;
}


.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.btn {
  background: linear-gradient(90deg, var(--accent), #4fb6ff);
  border: none;
  cursor: pointer;
  display: flex;                 
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #071127;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: scale(1.08);
}

.bigbtn {
  background: linear-gradient(90deg, var(--accent), #4fb6ff);
  color: #071127;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;       
  width: 56px;
  height: 56px;
  border-radius: 14px;
  line-height: 1;         
  font-family: monospace; 
  padding-top: 2px;      
  transition: transform 0.15s ease;
}


.bigbtn:hover {
  transform: scale(1.1);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  display: block;
}

.bigbtn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.bigbtn {
  line-height: 0;
  font-weight: bold;
}

/* Right: playlist + progress */
.right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.progresswrap {
  background: var(--card);
  padding: 12px 16px;
  border-radius: 12px;
}
.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.progress .bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #4fb6ff);
}

.time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.playlist {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
  max-height: 424px;
  height: 424px;
}
.item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.item.active {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.12),
    rgba(79, 182, 255, 0.06)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.it-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.it-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.it-meta {
  flex: 1;
}
.it-title {
  font-size: 14px;
  font-weight: 600;
}
.it-feel {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.load {
  font-size: 13px;
  color: var(--muted);
}
input[type="file"] {
  display: none;
}

footer.note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Responsive */
@media (max-width: 860px) {
  .player {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .artwrap {
    order: 2;
  }
    .right,.artwrap {
        order: 1;
    }
}

#bg-layer {
  position: fixed;
  inset: 0;
  background: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(25px) brightness(0.8);
  transform: scale(1.05); 
  z-index: -1; 
  transition: background 0.6s ease, filter 0.6s ease;
}


.user {
    background: transparent;
    height: 40px;
    min-height:40px;
    width:100%;
    border-radius: 8px;
    color: white;
    border: 2px solid #ffffff55;
}

#msg {
    background: transparent;
    height: 40px;
    color: white;
    border-radius: 8px;
    border: 2px solid #ffffff55;
}

#chat {
    background: transparent;
    border-radius: 8px;
    border: 2px solid #ffffff55;
    height: calc(100% - 100px);
    overflow: auto;
    padding: 5px;
    margin-top: 10px;
}

#sendBtn {
    background: transparent;
    color: white;
    border-radius: 8px;
    border: 2px solid #ffffff55;
    overflow: auto;
}