/* 视图切换样式 */
.list-view .torrent-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.grid-view .torrent-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    height: 100%;
    transition: box-shadow 0.15s ease-in-out;
}

.grid-view .torrent-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.torrent-item {
    margin-bottom: 1rem;
}

.torrent-title {
    display: block;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.torrent-title:hover {
    text-decoration: underline;
}

.torrent-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.torrent-meta-item {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 加载动画 */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}