
.xwme-latest-sites-list {
    padding: 4px 0;
}

.xwme-latest-sites-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-bottom: 2px;
}

.xwme-latest-sites-item:last-child {
    margin-bottom: 0;
}

.xwme-latest-sites-item:hover {
    background-color: var(--xwme-ls-hover-bg, rgba(0, 0, 0, 0.04));
    transform: translateX(2px);
}

.xwme-ls-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none !important;
    color: var(--main-color) !important;
    gap: 10px;
    line-height: 1.4;
}

.xwme-ls-link:hover {
    color: var(--main-color) !important;
    opacity: 0.85;
}

.xwme-ls-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--main-color, #999);
    background-color: var(--xwme-ls-rank-bg, rgba(0, 0, 0, 0.05));
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.xwme-latest-sites-item.xwme-ls-top-1 .xwme-ls-rank {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.xwme-latest-sites-item.xwme-ls-top-2 .xwme-ls-rank {
    background: linear-gradient(135deg, #FFA726, #FFCC02);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 167, 38, 0.3);
}

.xwme-latest-sites-item.xwme-ls-top-3 .xwme-ls-rank {
    background: linear-gradient(135deg, #42A5F5, #7E57C2);
    color: #fff;
    box-shadow: 0 2px 6px rgba(66, 165, 245, 0.3);
}

.xwme-ls-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--xwme-ls-icon-bg, rgba(0, 0, 0, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
}

.xwme-ls-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.xwme-latest-sites-item:hover .xwme-ls-favicon {
    transform: scale(1.1);
}

.xwme-ls-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xwme-ls-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--main-color, #999);
    opacity: 0.55;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-left: 6px;
}

@keyframes xwme-ls-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xwme-latest-sites-item {
    animation: xwme-ls-fade-in 0.3s ease forwards;
}

.xwme-latest-sites-item:nth-child(1) { animation-delay: 0s; }
.xwme-latest-sites-item:nth-child(2) { animation-delay: 0.03s; }
.xwme-latest-sites-item:nth-child(3) { animation-delay: 0.06s; }
.xwme-latest-sites-item:nth-child(4) { animation-delay: 0.09s; }
.xwme-latest-sites-item:nth-child(5) { animation-delay: 0.12s; }
.xwme-latest-sites-item:nth-child(6) { animation-delay: 0.15s; }
.xwme-latest-sites-item:nth-child(7) { animation-delay: 0.18s; }
.xwme-latest-sites-item:nth-child(8) { animation-delay: 0.21s; }
.xwme-latest-sites-item:nth-child(9) { animation-delay: 0.24s; }
.xwme-latest-sites-item:nth-child(10) { animation-delay: 0.27s; }

@keyframes xwme-ls-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.xwme-ls-skeleton {
    pointer-events: none;
    cursor: default;
}

.xwme-ls-skeleton .xwme-ls-link {
    cursor: default;
}

.xwme-ls-skeleton .xwme-ls-rank,
.xwme-ls-skeleton .xwme-ls-icon,
.xwme-ls-skeleton .xwme-ls-name,
.xwme-ls-skeleton .xwme-ls-date {
    background-image: linear-gradient(
        90deg,
        var(--xwme-ls-skeleton-base, rgba(0, 0, 0, 0.06)) 25%,
        var(--xwme-ls-skeleton-shine, rgba(255, 255, 255, 0.45)) 50%,
        var(--xwme-ls-skeleton-base, rgba(0, 0, 0, 0.06)) 75%
    );
    background-size: 800px 100%;
    background-repeat: no-repeat;
    will-change: background-position;
    animation: xwme-ls-shimmer 0.85s ease-in-out infinite;
    color: transparent;
    box-shadow: none;
}

.xwme-ls-skeleton:nth-child(2) .xwme-ls-rank,
.xwme-ls-skeleton:nth-child(2) .xwme-ls-icon,
.xwme-ls-skeleton:nth-child(2) .xwme-ls-name,
.xwme-ls-skeleton:nth-child(2) .xwme-ls-date { animation-delay: 0.06s; }
.xwme-ls-skeleton:nth-child(3) .xwme-ls-rank,
.xwme-ls-skeleton:nth-child(3) .xwme-ls-icon,
.xwme-ls-skeleton:nth-child(3) .xwme-ls-name,
.xwme-ls-skeleton:nth-child(3) .xwme-ls-date { animation-delay: 0.12s; }
.xwme-ls-skeleton:nth-child(4) .xwme-ls-rank,
.xwme-ls-skeleton:nth-child(4) .xwme-ls-icon,
.xwme-ls-skeleton:nth-child(4) .xwme-ls-name,
.xwme-ls-skeleton:nth-child(4) .xwme-ls-date { animation-delay: 0.18s; }
.xwme-ls-skeleton:nth-child(5) .xwme-ls-rank,
.xwme-ls-skeleton:nth-child(5) .xwme-ls-icon,
.xwme-ls-skeleton:nth-child(5) .xwme-ls-name,
.xwme-ls-skeleton:nth-child(5) .xwme-ls-date { animation-delay: 0.24s; }

.io-black-mode {
    --xwme-ls-skeleton-base: rgba(255, 255, 255, 0.07);
    --xwme-ls-skeleton-shine: rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
    .xwme-latest-sites-item {
        padding: 6px 8px;
    }

    .xwme-ls-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .xwme-ls-name {
        font-size: 13px;
    }

    .xwme-ls-date {
        font-size: 11px;
    }

    .xwme-ls-rank {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}
