* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #e94560;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.language-btn:hover,
.language-btn.active {
    background: #e94560;
    color: white;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

.tagline {
    color: #a9b7d0;
    margin-bottom: 30px;
    font-size: 18px;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 60%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    padding: 15px 30px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-btn:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.search-type {
    margin-left: 10px;
    padding: 0 15px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.results-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-height: 600px;
    overflow-y: auto;
}

.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #e94560;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
}

.song-list {
    list-style: none;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.song-item:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateY(-2px);
}

.song-item.playing {
    background: rgba(233, 69, 96, 0.3);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

.song-info {
    flex: 1;
}

.song-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.song-name i {
    margin-right: 8px;
    font-size: 14px;
    color: #e94560;
}

.song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.song-album {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.song-duration {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 15px;
    font-size: 14px;
}

.play-icon {
    color: #e94560;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.song-item:hover .play-icon {
    background: rgba(233, 69, 96, 0.3);
    transform: scale(1.1);
}

.lyrics-section {
    flex: 1;
    position: relative;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lyrics-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    height: 540px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lyrics-title {
    font-size: 20px;
    color: #e94560;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.lyrics-title i {
    margin-right: 10px;
}

.auto-scroll-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.auto-scroll-toggle:hover {
    background: rgba(233, 69, 96, 0.3);
}

.auto-scroll-toggle i {
    margin-right: 5px;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    text-align: center;
}

.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 3px;
}

.lyric-line {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 16px;
    line-height: 1.6;
}

.lyric-line.active {
    color: #e94560;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
    transform: scale(1.05);
}

.play-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: linear-gradient(135deg, #e94560 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.current-song {
    flex: 1;
    margin: 0 20px;
    min-width: 0;
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    display: flex;
    align-items: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    margin: 0 10px;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #e94560;
    transform: scale(1.1);
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background: #e94560;
}

.play-btn:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.progress-container {
    flex: 2;
    display: flex;
    align-items: center;
    min-width: 0;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 15px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #e94560;
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 80px;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.volume-icon {
    font-size: 20px;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.volume-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #e94560;
    border-radius: 3px;
    width: 70%;
}

.loading,
.error,
.empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.error {
    color: #e94560;
}

.empty i,
.loading i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    color: #e94560;
}

.ip-detection {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1001;
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }

    .search-input {
        width: 50%;
    }

    .play-controls {
        flex-wrap: wrap;
        padding: 15px;
    }

    .progress-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .current-song {
        min-width: 150px;
    }

    .lyrics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .auto-scroll-toggle {
        align-self: flex-end;
    }

    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 15px;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #e94560;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 2000;
}

.notification.show {
    transform: translateX(0);
}