body {
    background: linear-gradient(135deg, #e0e5ec, #f5f7fa);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    padding-top: 75px;
    transition: background 0.4s ease;
    color: #1f1f1f;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.85);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header a {
    color: inherit;
    text-decoration: none;
}

.search-box {
    max-width: 600px;
    margin: 1.5rem auto;
}

.search-box input {
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: none;
    transition: box-shadow .3s;
}

.search-box input:focus {
    box-shadow: 0 0 0 4px rgba(0,123,255,0.25);
}

.track-card {
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform .35s ease, box-shadow .35s ease;
    opacity: 0;
    transform: translateY(20px);
}

.track-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.track-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.track-cover {
    height: 105px;
    width: 105px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .6s ease, transform .6s ease;
}

.track-cover.loaded {
    opacity: 1;
    transform: scale(1);
}

.track-info {
    flex: 1;
    min-width: 180px;
}

.track-title {
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.track-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.track-artist {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.2rem;
}

.play-button, .download-btn {
    border: none;
    border-radius: 25px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.play-button {
    background: linear-gradient(135deg, #007bff, #005ecb);
}

.play-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #1c7e34);
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(248,249,250,0.85);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.08);
    margin-top: 7px;
}

.play-toggle {
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform .25s ease, background .25s ease;
}

.play-toggle:hover {
    transform: scale(1.1);
    background: #0056b3;
}

.progress-bar-container {
    flex: 1;
    height: 7px;
    background: #e3e3e3;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 7px;
    width: 0;
    background: #007bff;
    border-radius: 5px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.85rem;
    color: #444;
    min-width: 90px;
    text-align: right;
}

.remote-list {
    margin-top: 2rem;
}

.remote-item {
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    padding: .5rem .3rem;
    border-radius: 8px;
}

.remote-item:hover {
    transform: translateX(4px);
    background: #e6f0ff;
}

.fade-container {
    opacity: 0;
    filter: blur(12px);
    transition: opacity .6s ease, filter .6s ease;
}

.fade-container.fade-in {
    opacity: 1;
    filter: blur(0);
}

.fade-container.fade-out {
    opacity: 0;
    filter: blur(20px);
}

.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    display: flex;
    gap: 15px;
    padding: 14px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.skeleton-cover {
    width: 75px;
    height: 75px;
    border-radius: 14px;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 16px;
    width: 100%;
}

.skeleton-line.short {
    width: 50%;
}

.loading {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
    color: #666;
}

.loading.show {
    opacity: 1;
    visibility: visible;
}