:root { --card-size: 450px; }
body { margin: 0; overflow: hidden; background: #121212; font-family: sans-serif; }
.app-container {
    height: 100dvh;
    width: 100dvw;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    touch-action: none;
}
.coverflow-scene {
    position: relative;
    width: 100%;
    height: 80%;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.album-card {
    position: absolute; left: 50%; top: 50%;
    width: var(--card-size); height: var(--card-size);
    margin-left: calc(var(--card-size) / -2); margin-top: calc(var(--card-size) / -2);
    background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.5); cursor: pointer; 
    transform-style: preserve-3d;
}
.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none;
}
.album-info {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.album-card:hover .album-info {
    opacity: 1;
}

.detail-container {
    width: 80%;
    max-width: 900px;
    height: 500px;
    background: #1e1e1e;
    border-radius: 12px;
    display: flex;
    z-index: 100;
    animation: fadeUp 0.4s ease-out;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.detail-left {
    flex: 0 0 300px;
    padding: 30px;
    background: #252525;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.detail-cover {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.detail-right {
    flex: 1;
    overflow-y: auto;
    background: #121212;
}
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  height: 10%
  max-width: 400px;
}
.track-row {
    padding: 10px 20px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
}
.track-row:hover { background: #2a2a2a; }
.controls-bar {
    position: absolute;
    bottom: 5%;
    display: flex;
    gap: 20px;
    z-index: 200;
}

button {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: white;
    color: black;
    font-weight: bold;
    width: 100%;
    height: 50px;
    max-width: 400px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: #ff0000;
}
.progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.progress-rect {
    stroke-width: 1px;
    transition: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1.0));
}

.jellyfin-form-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  background: #1e1e1e;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 33%;
  box-sizing: border-box;
  animation: fadeUp 0.3s ease-out;
}

.jellyfin-form-box input {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #252525;
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.jellyfin-form-box input::placeholder {
  color: #777;
}

.jellyfin-form-box input:focus {
  border-color: #aa5cc3;
  box-shadow: 0 0 0 2px rgba(170, 92, 195, 0.3);
}

.jellyfin-form-box button {
  margin-top: 10px;
  background: #aa5cc3;
  color: white;
  transition: background 0.2s, transform 0.1s;
}

.jellyfin-form-box button:hover {
  background: #8e49a6;
}

.jellyfin-form-box button:active {
  transform: scale(0.98);
}
