* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.music-player {
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 20px;
    margin-bottom: 60px;
}

.music-info {
    text-align: center;
    margin-bottom: 20px;
}

.cover-art {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    perspective: 1000px;
    cursor: pointer;
}

.cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    overflow: hidden;
}

.cover-art.flipped .cover-container {
    transform: rotateY(180deg);
}

.cover-front, .cover-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.cover-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-back {
    background: linear-gradient(145deg, #1db954, #1ed760);
    transform: rotateY(180deg);
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-info h2 {
    margin-bottom: 5px;
    color: #333;
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
}

.track-info p {
    color: #666;
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
}

.controls {
    margin: 20px 0;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-bottom: 10px;
}

.progress {
    position: absolute;
    height: 100%;
    background: #1db954;
    border-radius: 2px;
}

#seek-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.time {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

button:hover {
    color: #1db954;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

#volume {
    width: 80px;
}

.playlist-container {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
}

#file-input {
    display: none;
}

.upload-btn {
    background: #1db954;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#playlist {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

#playlist li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.track-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-name {
    font-size: 14px;
    color: #333;
}

.tibetan-name {
    font-size: 14px;
    color: #666;
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", sans-serif;
}

#playlist li:hover {
    background: #f5f5f5;
}

#visualizer {
    width: 100%;
    height: 60px;
    margin: 10px 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
}

.tibetan-name.translating {
    color: #999;
    font-style: italic;
}

.tibetan-name.translation-error {
    color: #ff4444;
}

.retry-translation {
    background: none;
    border: none;
    color: #1db954;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.retry-translation:hover {
    text-decoration: underline;
}

.metadata-info {
    text-align: left;
}

.metadata-info p {
    margin: 10px 0;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.metadata-info strong {
    display: inline-block;
    width: 45px;
    color: rgba(255,255,255,0.8);
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
}

.cover-container:hover {
    transform: scale(1.02) rotateY(0);
}

.cover-art.flipped .cover-container:hover {
    transform: scale(1.02) rotateY(180deg);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer p {
    margin: 0;
    font-family: "Tibetan Machine Uni", "Microsoft Himalaya", "Noto Sans Tibetan", sans-serif;
}

.version {
    font-size: 10px;
    color: #999;
} 